aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/decode: do not treat discarded frames as eof when drainingMuhammad Faiz2017-05-031-3/+5
| | | | | | | | Fix fate failures: make fate-mov THREADS=32 Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avfilter/interlace: add complex vertical low-pass filterThomas Mundt2017-05-0210-24/+246
| | | | | | | This complex (-1 2 6 2 -1) filter slightly less reduces interlace 'twitter' but better retain detail and subjective sharpness impression compared to the linear (1 2 1) filter. Signed-off-by: Thomas Mundt <tmundt75@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/nutdec: Fix an impossible condition, regression since e0c53c34.Carl Eugen Hoyos2017-05-021-1/+1
| | | | Fixes ticket #6362.
* avcodec/internal: update FF_CODEC_CAP_SETS_PKT_DTS doxyJames Almer2017-05-011-2/+2
| | | | The code it refers to was moved to decode.c in 00fb745a10a151791ce2e49ba3e463bd17ea9251
* tools/target_dec_fuzzer: Use avcodec_register_all() instead of register_all()Michael Niedermayer2017-05-021-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/mips/iirfilter_mips: Include config.h.Carl Eugen Hoyos2017-05-011-0/+1
| | | | | Fixes the following warning: libavcodec/mips/iirfilter_mips.c:57:5: warning: "HAVE_INLINE_ASM" is not defined
* lavc/mips/hevc_idct_msa: Add missing const qualifier.Carl Eugen Hoyos2017-05-011-6/+6
| | | | | Fixes many warnings: initialization discards 'const' qualifier from pointer target type
* avcodec/indeo2: Check remaining bits in ir2_decode_plane()Michael Niedermayer2017-05-011-0/+4
| | | | | | | | Fixes: 1290/clusterfuzz-testcase-minimized-5815578902134784 Fixes: timeout Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/vp3: Check remaining bits in unpack_dct_coeffs()Michael Niedermayer2017-05-011-0/+7
| | | | | | | | | Decreases the time spend decoding junk. May fix: 1283/clusterfuzz-testcase-minimized-6221126759874560 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/developer: Add terse documentation of assumed C implementation defined ↵Michael Niedermayer2017-05-011-0/+5
| | | | | | | behavior Suggested-by: "Ronald S. Bultje" <rsbultje@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/bmp: Use ff_set_dimensions()Michael Niedermayer2017-05-011-2/+5
| | | | | | | | | Fixes out of memory Fixes: 1282/clusterfuzz-testcase-minimized-5400131681648640 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavformat/http: Ignore expired cookiesMicah Galizia2017-05-011-57/+156
| | | | | Signed-off-by: Micah Galizia <micahgalizia@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/exr : add test for negative float valueMartin Vignali2017-05-012-0/+9
| | | | | | | the tested sample contain negative value in the red channel need to be clip to zero, and not set to MAX_RED Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate/exr : add tests for piz uncompressMartin Vignali2017-05-015-0/+36
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavcodec/exr : fix piz uncompress on big endianMartin Vignali2017-05-011-5/+23
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/options: do a more thorough clean up in avcodec_copy_context()James Almer2017-04-301-0/+15
| | | | | | | | | Free coded_frame, coded_side_data and unref hw_device_ctx to prevent potential leaks. Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/options: factorize avcodec_copy_context() cleanup codeJames Almer2017-04-301-15/+15
| | | | | | Reviewed-by: Aaron Levinson <alevinsn@aracnet.com> Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskaenc: add support for writing Content Light Level elementsJames Almer2017-04-301-2/+13
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/matroskadec: export Content Light Level metadataJames Almer2017-04-301-0/+15
| | | | | | Based on a patch by Hendrik Leppkes Signed-off-by: James Almer <jamrial@gmail.com>
* Merge commit 'c2fa6bb0e8703a7a6aa10e11f9ab36094416d83f'James Almer2017-04-300-0/+0
|\ | | | | | | | | | | | | | | | | * commit 'c2fa6bb0e8703a7a6aa10e11f9ab36094416d83f': mpeg12dec: move setting first_field to mpeg_field_start() This commit is a noop, see 2f6f2f4f73c068979829e785d08cb1dd345c7fc8 Merged-by: James Almer <jamrial@gmail.com>
| * mpeg12dec: move setting first_field to mpeg_field_start()Anton Khirnov2016-12-191-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | For field picture, the first_field is set based on its previous value. Before this commit, first_field is set when reading the picture coding extension. However, in corrupted files there may be multiple picture coding extension headers, so the final value of first_field that is actually used during decoding can be wrong. That can lead to various undefined behaviour, like predicting from a non-existing field. Fix this problem, by setting first_field in mpeg_field_start(), which should be called exactly once per field. CC: libav-stable@libav.org Bug-ID: 999
* | tools: Eliminate codec_type complexity from fuzzerMichael Niedermayer2017-04-302-19/+11
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libswscale/tests/swscale: Fix uninitialized variablesMichael Niedermayer2017-04-301-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/af_crystalizer: add support for more sample formatsPaul B Mahol2017-04-301-22/+126
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/pthread_frame, decode: allow errors to happen on drainingMuhammad Faiz2017-04-303-10/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | So, all frames and errors are correctly reported in order. Also limit the numbers of error during draining to prevent infinite loop. This fix fate failure with THREADS>=4: make fate-h264-attachment-631 THREADS=4 This also reverts a755b725ec1d657609c8bd726ce37e7cf193d03f. Suggested-by: wm4, Ronald S. Bultje, Marton Balint Reviewed-by: w4 <nfxjfg@googlemail.com> Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | avfilter: add video oscilloscope filterPaul B Mahol2017-04-295-0/+463
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avfilter: add pixscope filterPaul B Mahol2017-04-295-8/+255
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Merge commit 'e807491fc6a336e4becc0cbc981274a8fde18aba'Clément Bœsch2017-04-290-0/+0
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * commit 'e807491fc6a336e4becc0cbc981274a8fde18aba': mpeg12dec: avoid signed overflow in bitrate calculation mpegvideo_parser: avoid signed overflow in bitrate calculation This merge is a noop. 2017-04-29 12:54:15 @ubitux michaelni: is 740959fdbfbf804ccd8a6e426b1b1ba321fe5cfb enough to fix the overflow fixed in 58405de0951a843765625159402870c1eea3c3b1? 2017-04-29 12:55:53 @ubitux same question with e807491fc6a336e4becc0cbc981274a8fde18aba 2017-04-29 13:21:45 michaelni ubitux, the libav code refered to is wrong for us and i doubt the problem it fixes applies to us. 2017-04-29 13:24:29 @ubitux michaelni: ok, for both commits? 2017-04-29 13:33:55 michaelni yes, they do more or less the same thing Merged-by: Clément Bœsch <u@pkh.me>
| * mpeg12dec: avoid signed overflow in bitrate calculationAnton Khirnov2016-12-191-2/+11
| | | | | | | | | | | | CC: libav-stable@libav.org Bug-Id: 981 Found-By: Agostino Sarubbo
| * mpegvideo_parser: avoid signed overflow in bitrate calculationAnton Khirnov2016-12-191-1/+8
| | | | | | | | | | | | CC: libav-stable@libav.org Bug-Id: 981 Found-By: Agostino Sarubbo
* | Merge commit '46191a2da16f751e53d93646ae1388d421d12bee'Clément Bœsch2017-04-291-1/+5
|\| | | | | | | | | | | | | * commit '46191a2da16f751e53d93646ae1388d421d12bee': mov: fix a possible invalid read in mov_read_mac_string() Merged-by: Clément Bœsch <u@pkh.me>
| * mov: fix a possible invalid read in mov_read_mac_string()Anton Khirnov2016-12-191-1/+5
| | | | | | | | | | | | | | | | | | | | When the input string is too large, so the second condition in if () fails, the code will erroneously execute the else branch, indexing the mac_to_unicode table with a negative index. CC: libav-stable@libav.org Bug-Id: 1000 Found-By: Kamil Frankowicz
* | Merge commit 'cfa4eb4fba782f3f37a33be997b27a91a07053c9'Clément Bœsch2017-04-290-0/+0
|\| | | | | | | | | | | | | | | | | * commit 'cfa4eb4fba782f3f37a33be997b27a91a07053c9': vaapi_decode: use the correct logging context This commit is a noop, see 79307ae56374b35cf12563a7c8e3e759658f847e Merged-by: Clément Bœsch <u@pkh.me>
| * vaapi_decode: use the correct logging contextAnton Khirnov2016-12-191-3/+3
| |
* | Merge commit 'ea8b730d8e67152107d7fcdd5590bbb51ec236b1'Clément Bœsch2017-04-290-0/+0
|\| | | | | | | | | | | | | | | | | * commit 'ea8b730d8e67152107d7fcdd5590bbb51ec236b1': hevcdec: add a VAAPI hwaccel This commit is a noop, see adb54e59c18db347f39e55832104fc3e40a3c42b Merged-by: Clément Bœsch <u@pkh.me>
| * hevcdec: add a VAAPI hwaccelAnton Khirnov2016-12-198-3/+452
| | | | | | | | | | Partially based on a patch by Timo Rothenpieler <timo@rothenpieler.org>. Additional scaling list handling fix by Jun Zhao <mypopydev@gmail.com>.
* | Merge commit '1783d7ec03d730c5bd96c07bc5fa7aa566f85c66'Clément Bœsch2017-04-291-0/+1
|\| | | | | | | | | | | | | * commit '1783d7ec03d730c5bd96c07bc5fa7aa566f85c66': Changelog: add some missing entries Merged-by: Clément Bœsch <u@pkh.me>
| * Changelog: add some missing entriesAnton Khirnov2016-12-191-0/+3
| |
* | doc/filters: add one lowpass filter examplePaul B Mahol2017-04-291-0/+9
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avformat/movenc: Explicitly address potential division by zero.Lucas Cooper2017-04-291-3/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | find_fps attempts to infer framerate from AVCodec's timebase. When this results in a frame rate that isn't explicitly marked as supported in av_timecode_check_frame_rate, find_fps returns the AVStream's avg_frame_rate, which, per avformat.h, _may_ be set (or not). mov_get_mpeg2_xdcam_codec_tag, mov_get_h264_codec_tag and find_compressor attempt to call av_q2d on the return value of find_fps, which in the above case, may result in division by zero and therefore, an undefined frame rate when NaN is converted to int. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libvpxenc: allow aq-mode 4 (equator360)James Zern2017-04-282-1/+6
| | | | | | | | | | | | | | this was added in 1.6.0 Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Zern <jzern@google.com>
* | avfilter/lavfutils: use image2pipe demuxer on ff_load_imageMuhammad Faiz2017-04-291-1/+1
| | | | | | | | | | | | | | allow protocols other than file to be used for example, use data protocol to embed a file in script Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* | avformat/hlsenc: fix CID 1405135Steven Liu2017-04-281-4/+4
| | | | | | | | | | | | | | Fixes Coverity CID: 1405135 Reviewed-by: Rodger Combs <rodger.combs@gmail.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | avformat/hlsenc: hold old key info when append listSteven Liu2017-04-281-0/+24
| | | | | | | | | | | | fix ticket id: #6353 Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* | opus_pvq: use function pointers for recursionRostislav Pehlivanov2017-04-271-37/+25
| | | | | | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* | avcodec/opus_pvq: fix recursive inlining compilation failuresJames Almer2017-04-271-16/+32
| | | | | | | | They were introduced by f16180f44859587e0211170bd82b1bfd26f24b5a
* | avcodec/mdec: Fix runtime error: left shift of negative value -127Michael Niedermayer2017-04-271-1/+1
| | | | | | | | | | | | | | | | Fixes undefined behavior Fixes: 1275/clusterfuzz-testcase-minimized-6718162017976320 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | tools/target_dec_fuzzer: Fix return code on open failureMichael Niedermayer2017-04-271-1/+1
| | | | | | | | | | | | | | Fixes: 1271/clusterfuzz-testcase-minimized-6095220498235392 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/x86/vc1dsp_init: Fix build failure with --disable-optimizations and ↵Michael Niedermayer2017-04-271-2/+4
| | | | | | | | | | | | | | | | | | clang compilers doing DCE at -O0 do not necessarily understand "complex" boolean expressions Build succeeds with this change, this was the only failure Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavcodec/exr : fix float to uint16 conversion for negative float valueMartin Vignali2017-04-271-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>