aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* dnn: introduce dnn operand (in c code) to hold operand infos within networkGuo, Yejun2019-08-306-134/+236
| | | | | | | | | | | the info can be saved in dnn operand object without regenerating again and again, and it is also needed for layer split/merge, and for memory reuse. to make things step by step, this patch just focuses on c code, the change within python script will be added later. Signed-off-by: Guo, Yejun <yejun.guo@intel.com> Signed-off-by: Pedro Arthur <bygrandao@gmail.com>
* avfilter/vf_v360: add facebook's formatEugene Lyapustin2019-08-302-0/+165
|
* avutil/file: add more check befor destory the bufferJun Zhao2019-08-301-1/+1
| | | | | | | add more check befor destory the buffer Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avutil/file: always set *size to zero if *bufptr is NULLJun Zhao2019-08-301-0/+5
| | | | | | | | | Always set *size to zero if *bufptr is NULL, it's more make sence. fix #8095 Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
* avcodec: add IMM5 decoderPaul B Mahol2019-08-299-2/+208
|
* avcodec/msrle: add a flush() callbackPaul B Mahol2019-08-291-0/+8
| | | | The reference frame isn't valid after seeking.
* configure: fix --enable-omx compile on raspberry piAman Gupta2019-08-291-1/+1
| | | | | | | | | | | | | | | | | | | Many ffmpeg + rpi compilation guides on the internet recommend using `./configure --enable-omx --enable-omx-rpi`. This fails to find the IL OMX headers on device because the omx require_headers check happens first before the add_cflags in omx_rpi. A workaround is to use `./configure --enable-omx-rpi` only, since omx_rpi already implies omx. But because many users expect to use existing scripts and commands, we swap the order here so omx_rpi special cases are applied first. In the past this wasn't an issue because users noticed the OMX_Core.h missing error and installed libomxil-bellagio-dev. But since 76c82843ccad1, the rpi specific headers from /opt/vc/include/IL are required. Signed-off-by: Aman Gupta <aman@tmm1.net>
* avcodec/ivi: Allocate bufs laterMichael Niedermayer2019-08-291-19/+20
| | | | | | | | Fixes: Timeout (24sec->2sec) Fixes: 15951/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO5_fuzzer-5095433266790400 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Adjust maxpixels for indeo4Michael Niedermayer2019-08-291-0/+2
| | | | | | | | Fixes: Timeout (131sec -> 4sec) Fixes: 15581/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_INDEO4_fuzzer-5651105515569152 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Adjust GDV pixel threshold down by a factor of 2Michael Niedermayer2019-08-291-1/+1
| | | | | | | | Fixes: Timeout (7sec -> 1sec) Fixes: 14709/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_GDV_fuzzer-5704215281795072 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: adjust pixel threshold for SANM, as it allows ↵Michael Niedermayer2019-08-291-0/+1
| | | | | | | | | | coding gigantic images on tiny input Fixes: Timeout (13sec ->1sec) Fixes: 16122/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SANM_fuzzer-5724944247291904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/tta: Fix integer overflow in predictionMichael Niedermayer2019-08-291-5/+5
| | | | | | | | Fixes: signed integer overflow: -395281576 + -1827578048 cannot be represented in type 'int' Fixes: 16038/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TTA_fuzzer-5646109705240576 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vb: Check input packet size to be large enough to contain flagsMichael Niedermayer2019-08-291-0/+3
| | | | | | | | Fixes: Timeout (->9sec) Fixes: 16292/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_VB_fuzzer-5747063496638464 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/cavsdec: Limit the number of access units per packet to 2Michael Niedermayer2019-08-291-0/+4
| | | | | | | | Fixes: Timeout (122sec -> 13ms) Fixes: 15978/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_CAVS_fuzzer-5148925004087296 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mpsubdec: Remove floating point usageMichael Niedermayer2019-08-292-19/+69
| | | | | | | | | | | This makes the code bitexact between platforms. Intermediate timestamps between frames are preserved. The timebase is simplified. Rounding differs from doubles in cases where timestamps/durations are "funny" Suggested-by: jb Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/cbs_h2645: Use av_realloc instead of av_mallocThierry Foucu2019-08-281-1/+1
| | | | | Follow the description of av_realloc, the memory needs to be allocated by av_realloc.
* lavf/dump: dump the vbv_delay with N/A instead of 18446744073709551615Limin Wang2019-08-281-4/+7
| | | | | | | | | | | | | | | | How to check it: ./ffmpeg -f lavfi -i testsrc -c:v mpeg2video -f null - master: Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: 18446744073709551615 patch applied: Side data: cpb: bitrate max/min/avg: 0/0/200000 buffer size: 0 vbv_delay: N/A Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Limin Wang <lance.lmwang@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dsd: use uint8_t instead of unsigned charPaul B Mahol2019-08-282-7/+7
|
* avcodec/dsddec: add slice threading supportPaul B Mahol2019-08-282-19/+40
|
* avformat/dsfdec: set packet pts/duration/pos correctlyPaul B Mahol2019-08-281-2/+15
|
* avcodec/h264_refs: do not use invalid mmco values in case of errorPaul B Mahol2019-08-281-1/+3
| | | | Change one relevant assert to av_assert0 while here.
* avformat/mov: improve timecode calculationPaul B Mahol2019-08-282-3/+3
| | | | | Fixes timecode calculation for NTSC frame rates. Fixes ticket #5978.
* avcodec/tiff: add missing break in tiff_decode_tag()Paul B Mahol2019-08-281-0/+1
|
* avformat/dhav: always initializer retPaul B Mahol2019-08-281-1/+1
|
* avfilter/af_compand: change error condition into warningPaul B Mahol2019-08-281-3/+4
|
* libavcodec/amfenc: Vulkan initialization support for encoder.OvchinnikovDmitrii2019-08-274-6/+30
| | | | | | | | | | | | | | | | | | Added linux support for amf encoder through vulkan. To use h.264(AMD VCE) encoder on linux amdgru-pro version 19.20+ and amf-amdgpu-pro package(amdgru-pro contains, but does not install automatically) are required. This driver can be installed using amdgpu-pro-install script in official amd driver archive. Initialization of amf encoder occurs in this order: 1) trying to initialize through dx11(only windows) 2) trying to initialize through dx9(only windows) 3) trying to initialize through vulkan Only Vulkan initialization available on linux.
* avcodec/qtrle: don't clear the palette when flushingJames Almer2019-08-271-1/+0
| | | | | | It may be propagated only once for the entire stream. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/qtrle: call ff_reget_buffer() only when the picture data is going to ↵James Almer2019-08-271-5/+23
| | | | | | | | | | | | | | change ff_reget_buffer() will attempt to create a writable copy of the frame, which is not needed when the decoder intends to return a reference to the same buffer as the previous frame. Should reduce data copy, hopefully achieving a similar speed up as a9dacdeea6168787a142209bd19fdd74aefc9dd6 without dropping frames. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* Revert "avcodec/qtrle: Do not output duplicated frames on insufficient input"James Almer2019-08-272-6/+115
| | | | | | | | | | | This reverts commit a9dacdeea6168787a142209bd19fdd74aefc9dd6. This patch effectively made the decoder output vfr content out of samples where cfr is expected. Addresses ticket #7880. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/atrac9dec: Check block_alignMichael Niedermayer2019-08-271-0/+5
| | | | | | | | | Fixes: Infinite loop Fixes: 16260/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC9_fuzzer-5676365617037312 Fixes: 16260/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ATRAC9_fuzzer-5768093879500800 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/qtrle: add a flush() callbackJames Almer2019-08-271-0/+9
| | | | | | | The reference frame isn't valid after seeking Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/h2645_parse: zero initialize the rbsp bufferJames Almer2019-08-271-2/+7
| | | | | | | Fixes ticket #8093 Reviewed-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/vaapi_encode: respect -force_key_frames settingAman Gupta2019-08-261-1/+1
| | | | | | | This was a regression in 5fdcf85bbffe7451c227478fda62da5c0938f27d Signed-off-by: Aman Gupta <aman@tmm1.net> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* tools/target_dec_fuzzer: Increase maxpixels threshold for diracMichael Niedermayer2019-08-261-0/+1
| | | | | | | | | | | | | wavelets allow significant size expansion and they are also not very fast. Fixes: Timeout Fixes: 16480/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5659892689403904 (108sec -> 17ms) Fixes: 16480/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5749422717140992 (big ->15sec) Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Tomas Härdin <tjoppen@acc.umu.se> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* tools/target_dec_fuzzer: Do not corrupt the packet size returnMichael Niedermayer2019-08-261-2/+1
| | | | | | | | | Fixes: Timeout (infinite) Fixes: 16732/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_TAK_fuzzer-5642166377906176 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/alac: Check for bps of 0Michael Niedermayer2019-08-261-1/+3
| | | | | | | | | Fixes: shift exponent 32 is too large for 32-bit type 'unsigned int' Fixes: 15764/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_ALAC_fuzzer-5102101203517440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: James Almer <jamrial@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_derain: reindent code after last commitXuewei Meng2019-08-261-4/+4
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* doc/examples/decode_video: add input file format information for usageSteven Liu2019-08-261-1/+2
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* doc/examples/decode_audio: print message about how to play the output fileSteven Liu2019-08-261-0/+51
| | | | Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: remove unused valueSteven Liu2019-08-261-1/+0
| | | | | CID: 1452644 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: fix memleak of filenameSteven Liu2019-08-261-2/+1
| | | | | CID: 1452445 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* avformat/hlsenc: fix memleak in hls_write_trailerSteven Liu2019-08-261-0/+1
| | | | | | fix CID: 1426931 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* libavfilter: Add dehaze-filter option in existing derain.Xuewei Meng2019-08-262-0/+16
| | | | | | | | | | | Add the support of dehaze filter in existing derain filter source code. As the processing procedure in FFmpeg is the same for current derain and dehaze, we reuse the derain filter source code. The model training and generation scripts are in repo https://github.com/XueweiMeng/derain_filter.git Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Xuewei Meng <xwmeng96@gmail.com>
* lavc/x264: Also clean-up libx264rgb after init errors.Carl Eugen Hoyos2019-08-251-0/+1
| | | | Missed in c180f0f6
* avformat/movenc: add muxing support for Dolby TrueHD streamsJames Almer2019-08-242-2/+62
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mov: add demuxing support for Dolby TrueHD streamsJames Almer2019-08-244-1/+38
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mlp_parser: export AVCodecContext frame_sizeJames Almer2019-08-241-0/+1
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/mlp_parse: move TrueHD channel layout and sample rate related code ↵James Almer2019-08-242-50/+49
| | | | | | | | to the header It will be needed by the next commit. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dhav: handle files missing data at startPaul B Mahol2019-08-241-4/+19
| | | | | Try to seek to end of file and if signature is found seek backwards until last valid chunk is found.
* avformat/dhav: gracefully handle corrupted filesPaul B Mahol2019-08-241-24/+38
| | | | Try to find next valid chunk in offsets of 0x8000 from last good one.