summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avutil/samplefmt: don't add offsets to NULL pointersJames Almer2021-06-13
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/samplefmt: remove outdated commentJames Almer2021-06-13
| | | | | | | av_samples_fill_arrays() has been returning the minimum required buffer size for a while now. Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/audio_ffio: add missing headerMatthieu Patou2021-06-13
| | | | | | | Needed for HAVE_BIGENDIAN Suggested-by: ffmpeg@fb.com Signed-off-by: James Almer <jamrial@gmail.com>
* avutil/tests/lzo: remove timer macrosJames Almer2021-06-13
| | | | | Suggested-by: ffmpeg@fb.com Signed-off-by: James Almer <jamrial@gmail.com>
* doc/demuxers: note defaults for apng optionsGyan Doshi2021-06-13
|
* avformat/rpl: The associative law doesnt hold for signed integers in CMichael Niedermayer2021-06-12
| | | | | | | | | Add () to avoid undefined behavior Fixes: signed integer overflow: 9223372036854775790 + 57 cannot be represented in type 'long' Fixes: 34983/clusterfuzz-testcase-minimized-ffmpeg_dem_RPL_fuzzer-5765822923538432 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/faxcompr: Check available bits in decode_uncompressed()Michael Niedermayer2021-06-12
| | | | | | | | | Fixes: Timeout Fixes: 34950/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5686764151898112 Fixes: 34966/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-4587409334468608 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/faxcompr: Check if bits are available before reading in cmode == 9 ↵Michael Niedermayer2021-06-12
| | | | | | | | | | || cmode == 10 Fixes: Timeout Fixes: 34950/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TIFF_fuzzer-5686764151898112 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: Avoid overflow in codec_info_duration computation for subtitlesMichael Niedermayer2021-06-12
| | | | | | | | Fixes: signed integer overflow: 9223126845747118112 - -2594073385365397472 cannot be represented in type 'long' Fixes: 34936/clusterfuzz-testcase-minimized-ffmpeg_dem_MATROSKA_fuzzer-6739888002170880 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/utils: check dts/duration to be representable before using themMichael Niedermayer2021-06-12
| | | | | | | | Fixes: signed integer overflow: 6854513951393103890 + 3427256975738527712 cannot be represented in type 'long' Fixes: 32936/clusterfuzz-testcase-minimized-ffmpeg_dem_R3D_fuzzer-5236914752978944 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/utils: do "calc from frame_bytes, channels, and block_align" in 64bitMichael Niedermayer2021-06-12
| | | | | | | | Fixes: signed integer overflow: 104962766 * 32 cannot be represented in type 'int' Fixes: 33614/clusterfuzz-testcase-minimized-ffmpeg_dem_RSD_fuzzer-6252129036664832 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ttadata: Add sentinel at the end of ff_tta_shift_1Michael Niedermayer2021-06-12
| | | | | | | | Fixes: out of array access Fixes: 34933/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TTA_fuzzer-5629322560929792 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: Check for duplicate mdcvMichael Niedermayer2021-06-12
| | | | | | | | Fixes: memleak Fixes: 34932/clusterfuzz-testcase-minimized-ffmpeg_dem_MOV_fuzzer-5456227658235904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/flvdec: Check data before castingMichael Niedermayer2021-06-12
| | | | | | | | | Fixes: -nan is outside the range of representable values of type 'long' Fixes: signed integer overflow: 1000 * -9223372036854775808 cannot be represented in type 'long' Fixes: 34890/clusterfuzz-testcase-minimized-ffmpeg_dem_FLV_fuzzer-5334208657620992 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavfi/dnn: Fill Task using Common FunctionShubhanshu Saxena2021-06-12
| | | | | | | This commit adds a common function for filling the TaskItems in all three backends. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn: Use uint8_t for async and do_ioproc in TaskItemsShubhanshu Saxena2021-06-12
| | | | | | | These properties have values either 0 or 1, so using uint8_t is a better option as compared to int. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn: Add nb_output to TaskItemShubhanshu Saxena2021-06-12
| | | | | | | Add nb_output property to TaskItem for use in TensorFlow backend and Native backend. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn: Convert output_name to char** in TaskItemShubhanshu Saxena2021-06-12
| | | | | | | Convert output_name to char **output_names in TaskItem and use it as a pointer to array of output names in the DNN backend. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavfi/dnn: Extract TaskItem and InferenceItem from OpenVino BackendShubhanshu Saxena2021-06-12
| | | | | | | Extract TaskItem and InferenceItem from OpenVino backend and convert ov_model to void in TaskItem. Signed-off-by: Shubhanshu Saxena <shubhanshu.e01@gmail.com>
* lavu/mem: un-inline av_size_mult()Anton Khirnov2021-06-11
| | | | There seems to be no compelling reason for it to be inline.
* lavf: clarify probesize/format_probesize doxyAnton Khirnov2021-06-11
| | | | | probesize is not used for probing the input format, but its documentation claims it does.
* doc: fix generating doxy with out-of-tree buildsAnton Khirnov2021-06-11
| | | | | | Broken in 753930bc7300dd595c4bab51c5a70d1da9083da4, as the path to Doxyfile passed to doxy-wrapper.sh is relative to the build dir, while the recipe cd's to the source dir before invoking the wrapper.
* avcodec/cuviddec: correctly set key_frame with interlaced contentstuhlo2021-06-11
| | | | | | | | | | | Fixes #9283 This fixes setting of 'key_frame' flag in AVFrame when input h264 packets represents individual fields of interlaced video. In this case, pairs of two consecutive fields represents a single decoded picture and have identical 'CurrPicIdx', however, only the first field is entirely intra-coded and has the flag 'intra_pic_flag' set and the second field was resetting the flag before it was even read in the function 'cuvid_output_frame'. Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* ffmpeg: silence a thread_safe_callbacks deprecation warningJames Almer2021-06-10
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* examples/muxing: add missing headerJames Almer2021-06-10
| | | | | | Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
* examples/extract_mvs: add missing headerJames Almer2021-06-10
| | | | | | Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
* examples/demuxing_decoding: add missing headerJames Almer2021-06-10
| | | | | | Fixed compilation broken by e67e02d15672. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat: make AVStream.pts_wrap_bits publicJames Almer2021-06-10
| | | | | | | It can be useful to library users, and is currently being used by ffmpeg.c Suggested-by: Hendrik Leppkes <h.leppkes@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avfilter/overlay_cuda: support expression of x y positionSteven Liu2021-06-10
| | | | | | | and add per-frame / init mode for it. Signed-off-by: Steven Liu <liuqi05@kuaishou.com> Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* avformat/mpegtsenc: enable muxing of ARIB captionszheng qian2021-06-10
| | | | | | | | Writes a general ARIB stream identifier descriptor, as well as a data component descriptor which also includes a pre-defined additional_arib_caption_info structure. Signed-off-by: zheng qian <xqq@xqq.im>
* lavu/video_enc_params: make sure blocks are properly alignedAnton Khirnov2021-06-10
|
* lavf/mp3dec: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/mov_chan: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/matroska: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/latmenc: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/id3v1: drop unnecessary avcodec.h includeAnton Khirnov2021-06-10
|
* lavf/hevc: drop unnecessary avcodec.h includeAnton Khirnov2021-06-10
|
* lavf/framecrcenc: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/adtsenc: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/a64: avoid avcodec.h dependencyAnton Khirnov2021-06-10
|
* lavf/avformat.h: drop the avcodec.h includeAnton Khirnov2021-06-10
| | | | | Since AVStream.codec is gone, avformat.h does not require anything from avcodec.h.
* tools/uncoded_frame: include required headers explicitlyAnton Khirnov2021-06-10
|
* lavf/icoenc: include required headers explicitlyAnton Khirnov2021-06-10
|
* lavf/internal: include avcodec.h explicitlyAnton Khirnov2021-06-10
| | | | Do not depend on avformat.h to provide it.
* lavfi/lavfutils: include required headers explicitlyAnton Khirnov2021-06-10
|
* lavc/get_bits: avoid avcodec.h dependencyAnton Khirnov2021-06-10
| | | | Include only defs.h, needed for AV_INPUT_BUFFER_PADDING_SIZE.
* lavc/hevc_sei: include buffer.h explicitlyAnton Khirnov2021-06-10
| | | | Do not rely on including it indirectly through get_bits.h->avcodec.h
* lavc/mlp_parse: add required includes explicitlyAnton Khirnov2021-06-10
|
* lavc/dolby_e_parser: #include avcodec.h explicitlyAnton Khirnov2021-06-10
| | | | | This file uses definitions from it, but relies on an indirect include through get_bits.h
* lavc/cbs_internal: clean up headersAnton Khirnov2021-06-10
| | | | Include all required headers explicitly, avoid avcodec.h dependency.