Change #286098
| Category | ffmpeg |
| Changed by | Reinhard Nißl <rnissl@gmx.de> |
| Changed at | Wed 14 Oct 2026 22:43:13 |
| Repository | https://git.ffmpeg.org/ffmpeg.git |
| Project | ffmpeg |
| Branch | master |
| Revision | 955276412d447902ac3dec1dd6a7ee08ad1128be |
Comments
avcodec/bsf: add jpegapp to inject JPEG APP segments Inject APP0..APP15 segments from a length-prefixed sidecar into each MJPEG packet after SOI. A zero-length record passes the packet through. An APP1-only payload retains the existing APP0; a payload starting with APP0 replaces an APP0 located immediately after SOI. Consume records in packet arrival order, with a 16 MiB record limit. Missing or invalid records return an error. Remember sidecar read and validation errors so later packets cannot consume a rejected record's payload as metadata. Flushing neither rewinds the sidecar nor clears this error; closing the context does not read ahead. Count every consumed input packet in diagnostics, distinguish I/O errors from truncated records, include the open error text for a sidecar that cannot be opened, and document the sidecar and lifecycle contract. Co-authored-by: Cursor <cursoragent@cursor.com> Signed-off-by: Reinhard Nißl <rnissl@gmx.de> Assisted-by: Fairy
Changed files
- Changelog
- doc/bitstream_filters.texi
- libavcodec/bitstream_filters.c
- libavcodec/bsf/Makefile
- libavcodec/bsf/jpegapp.c