summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* 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.
* lavc/cbs: avoid avcodec.h dependencyAnton Khirnov2021-06-10
| | | | Include only the headers that are actually needed.
* lavc/cbs_bsf.h: explicitly #include all required headersAnton Khirnov2021-06-10
|
* lavc: move av_get_profile_name() from avcodec.h to codec.hAnton Khirnov2021-06-10
|
* lavc: move av_get_audio_frame_duration2() from avcodec.h to codec_par.hAnton Khirnov2021-06-10
|
* lavc: move av_get_pcm_codec() from avcodec.h to codec_id.hAnton Khirnov2021-06-10
|
* lavc: move avcodec_profile_name() from avcodec.h to codec_id.hAnton Khirnov2021-06-10
|
* lavc: move av_get_[exact_]bits_per_sample() to codec_id.hAnton Khirnov2021-06-10
|
* lavc: move small misc definitions into a separate headerAnton Khirnov2021-06-10
| | | | This will allow to avoid #including the entire avcodec.h in some places.
* ffmpeg_videotoolbox: skip memory copy if hwaccel_output_format matchzhilizhao2021-06-10
| | | | | | | | | | | | | | | | | | | | | Simple test results: Command: ./ffmpeg -y -hwaccel videotoolbox -hwaccel_output_format videotoolbox_vld \ -i test.mp4 -an -c:v h264_videotoolbox -benchmark out.mp4 Before: frame= 1221 fps= 66 q=-0.0 Lsize= 3144kB time=00:00:20.33 bitrate=1266.6kbits/s dup=4 drop=0 speed= 1.1x bench: utime=2.714s stime=1.218s rtime=18.574s After: frame= 1221 fps=137 q=-0.0 Lsize= 3144kB time=00:00:20.33 bitrate=1266.4kbits/s dup=4 drop=0 speed=2.28x bench: utime=1.450s stime=1.440s rtime=8.924s It has limited usecase since there is no video filter support, so a log message is added to notify the user. Reviewed-by: Steven Liu <liuqi05@kuaishou.com>
* hwcontext_vulkan: fix typo in vulkan_device_init()Lynne2021-06-10
| | | | load_functions() did not load the device-level functions.
* doc/ffmpeg: document reinit_filterGyan Doshi2021-06-10
|