aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
Commit message (Collapse)AuthorAgeFilesLines
...
* avformat/riff: map Y410 fourcc to RAWVIDEO decoderJames Almer2024-10-131-0/+1
| | | | | | | md5 values change because the nut container now reports rawvideo as encoder and Y410 as codec type instead of the bogus RGB[15]. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/hlsenc: check return value of avcodec_parameters_copy()Marth642024-10-131-1/+3
| | | | | | | Written in the dominant style of the surrounding code block. Signed-off-by: Marth64 <marth64@proxyid.net> Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashdec: format open_demux_for_component()Marth642024-10-131-3/+2
| | | | | Signed-off-by: Marth64 <marth64@proxyid.net> Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashdec: check return code of avcodec_parameters_copy()Marth642024-10-131-1/+5
| | | | | Signed-off-by: Marth64 <marth64@proxyid.net> Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/dashdec: return ret directly in open_demux_for_component()Marth642024-10-131-9/+6
| | | | | Signed-off-by: Marth64 <marth64@proxyid.net> Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* libavformat/hlsplaylist: add subtitle_varname for naming subtitle streamsJonathan Baecker2024-10-133-4/+14
| | | | | | | | | If 'sname:*' is set in the var_stream_map variable, use it as the NAME attribute for subtitles. This improves the naming of subtitle streams in HTML players, providing clearer and more descriptive labels for users. Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: Respect `omit_endlist` flag in subtitle playlistsJonathan Baecker2024-10-131-1/+1
| | | | | | | | | Ensure that when the `-hls_flags omit_endlist` option is set, the `#EXT-X-ENDLIST` tag is also omitted from the `stream_vtt.m3u8` subtitle playlist. This maintains consistency with the behavior in other playlists when `omit_endlist` is specified. Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: Respect `append_list` flag in subtitleJonathan Baecker2024-10-131-0/+30
| | | | | | | | Ensure that when the `-hls_flags append_list` option is set, that *.vtt files in stream_vtt.m3u8 are correctly updated. This fixes https://trac.ffmpeg.org/ticket/11208 Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/oma: Demux oma-encapsulated AAC audioasivery2024-10-133-0/+3
| | | | | Signed-off-by: asivery <asivery@protonmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avcodec: deprecate v410 de/encoderJames Almer2024-10-123-3/+3
| | | | | | | The V30X pixel format was recently added, so this lavc workaround is no longer needed. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: deprecate v308 de/encoderJames Almer2024-10-123-3/+3
| | | | | | | The vyu444 pixel format was recently added, so this lavc workaround is no longer needed. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: deprecate v408 de/encoderJames Almer2024-10-123-0/+6
| | | | | | | The uyva pixel format was recently added, so this lavc workaround is no longer needed. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/movenc: add support for V30X pixel formatJames Almer2024-10-122-0/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/movenc: add support for VYU444 pixel formatJames Almer2024-10-122-0/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/movenc: add support for UYVA pixel formatJames Almer2024-10-122-0/+3
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/riff: map v410 fourcc to RAWVIDEO decoderJames Almer2024-10-121-0/+1
| | | | | | | There's no need to keep using a custom decoder for this pixel format. md5 values change because the nut container now reports rawvideo as encoder. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/riff: map v308 fourcc to RAWVIDEO decoderJames Almer2024-10-121-0/+1
| | | | | | | There's no need to keep using a custom decoder for this pixel format. md5 values change because the nut container now reports rawvideo as encoder. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/riff: map v408 fourcc to RAWVIDEO decoderJames Almer2024-10-121-0/+1
| | | | | | | There's no need to keep using a custom decoder for this pixel format. md5 values change because the nut container now reports rawvideo as encoder. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/riff: map y408 fourcc to RAWVIDEO decoderJames Almer2024-10-121-0/+1
| | | | | | md5 values change because the nut container now reports rawvideo as encoder. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: Check desc_bytes so bits fit in 64bitMichael Niedermayer2024-10-091-1/+1
| | | | | | | | | | Likely a tighter check can be done Fixes: signed integer overflow: 3305606804154370442 * 8 cannot be represented in type 'long' Fixes: 70449/clusterfuzz-testcase-minimized-ffmpeg_dem_WEBM_DASH_MANIFEST_fuzzer-4771166007918592 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Avoid overflow in dtsMichael Niedermayer2024-10-091-2/+2
| | | | | | | | | | | This basically ignores the overflow without undefined behavior, alternatively we could detect and error out Fixes: signed integer overflow: 6310596683470275584 + 7660622966157213696 cannot be represented in type 'long' Fixes: 70433/clusterfuzz-testcase-minimized-ffmpeg_IO_DEMUXER_fuzzer-5483347233538048 Fixes: 369662284/clusterfuzz-testcase-minimized-media_metadata_parser_fuzzer-5327368763670528 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/mxf: Add ULs for DNxUncompressedMartin Schitter2024-10-092-0/+2
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: split off lcevc stream group initialization to its own functionJames Almer2024-10-051-42/+53
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: split off heif item initialization to its own functionJames Almer2024-10-051-50/+62
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: don't abort on invalid clap box dataJames Almer2024-10-021-11/+26
| | | | | | Unless explode is requested. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: get heif image mirroring from imir boxJames Almer2024-10-022-3/+26
| | | | | | Complements 76eb3e5ff3a35eff01dd71aca82efcda50c4441f. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: parse clap boxes that reference heif itemsJames Almer2024-10-021-10/+22
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: parse colr boxes that reference tile gridsJames Almer2024-10-022-11/+61
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: factorize getting the current itemJames Almer2024-10-021-24/+34
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/mxfdec: Remove a call to avio_tell() in klv_read_packet()Tomas Härdin2024-10-011-8/+14
|
* lavf/mxfdec: Speed up mxf_edit_unit_absolute_offset()Tomas Härdin2024-10-011-14/+53
| | | | This involves computing the approximate location of the desired index table segment and linearly searching from there.
* lavf/mxfdec: Speed up klv_read_packet()Tomas Härdin2024-10-011-1/+18
|
* avformat/mov: get heif image rotation from irot boxJames Almer2024-09-302-0/+68
| | | | | | | | Based on a patch by Hacene Bouaroua. Fixes ticket #11171. Co-authored-by: Hacene Bouaroua <hbouaroua@freebox.fr> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/avformat: add side data to AVStreamGroupTileGridJames Almer2024-09-304-13/+34
| | | | | | | Will be used to export certain information present in HEIF samples, like rotation metadata, ICC profiles, and potentially others. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: don't return the latest stream when an item stream is expectedJames Almer2024-09-301-1/+5
| | | | | | | Otherwise, things like ICC profiles as read from the colr box meant for an item with no stream (like a grid) may end up being added to the wrong stream. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/hlsenc: Fix missing EXT-X-DISCONTINUITY tag in subtitle streamsJonathan Baecker2024-09-301-1/+1
| | | | | | | | The EXT-X-DISCONTINUITY tag was not being added to subtitle streams, causing synchronization issues.i This patch ensures that the tag is applied consistently across video and subtitle streams. Reviewed-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/img2enc: Fix integer truncation when frame_pts is enabledZhao Zhili2024-09-291-4/+4
| | | | Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avformat/internal: Add ff_get_frame_filenameZhao Zhili2024-09-292-3/+24
| | | | | | | | | It's similar to av_get_frame_filename2 but with int64_t number support. Make av_get_frame_filename* a wrapper over ff_get_frame_filename. Co-authored-by: Filip Mašić <shoutplenty@gmail.com> Signed-off-by: Zhao Zhili <zhilizhao@tencent.com>
* avformat/dump: don't print streams withing a group twiceJames Almer2024-09-271-2/+4
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dump: reduce indentation when printing streams within a groupJames Almer2024-09-271-2/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dump: always print non-tile streams in tile grid groupsJames Almer2024-09-271-2/+7
| | | | | | | This ensures streams in the group that don't belong in the grid are printed with the default log level. Signed-off-by: James Almer <jamrial@gmail.com>
* */version.h: bump after release/7.1 branchn7.2-devMichael Niedermayer2024-09-241-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* */version.h: bump minor versions for release/7.1Michael Niedermayer2024-09-241-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/asf: Check picsizeMichael Niedermayer2024-09-241-2/+2
| | | | | | | | Fixes: signed integer overflow: 1073750247 * 2 cannot be represented in type 'int' Fixes: 70722/clusterfuzz-testcase-minimized-ffmpeg_dem_ASF_O_fuzzer-5447231587549184 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: fix setting index of LCEVC enhancement streamJames Almer2024-09-231-1/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/rtpdec: fix integer overflow in start_time_realtime calculationJonathan Baudanza2024-09-231-1/+1
| | | | | | | | | | | | | | | | I encountered this problem with NTP timestamps that are extremely old, like from January, 1990. Although RFC3550 suggests that the timestamps in the RTCP packets use the actual wallclock, some implementations use other clocks, such as the CLOCK_MONOTONIC on linux. I'm my case, I'm dealing with packets from mediasoup. Without this patch, start_time_realtime shows up in the distance future instead of around Jan 1900. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* avformat/mov: support for LCEVC tracksJames Almer2024-09-193-0/+92
| | | | | Co-authored-by: V-Nova Team <systems@v-nova.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: add an LCEVC stream groupJames Almer2024-09-195-3/+89
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mxfdec: Check timecode for overflowMichael Niedermayer2024-09-191-0/+3
| | | | | | | | Fixes: signed integer overflow: 9223372036840103968 + 538976288 cannot be represented in type 'long' Fixes: 70604/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-4844090340999168 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mxfdec: More offset_temp checksMichael Niedermayer2024-09-191-0/+5
| | | | | | | | | Fixes: signed integer overflow: 9223372036854775807 - -1927491430256034080 cannot be represented in type 'long' Fixes: 70607/clusterfuzz-testcase-minimized-ffmpeg_dem_MXF_fuzzer-5282235077951488 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <git@haerdin.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>