summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* fate: correct filename references of qt-faststart binaryGyan Doshi2018-06-162-2/+2
| | | | qt-faststart build doesn't have PROGSSUF added.
* lavf/aviobuf: Increase Statistics verbosity to AV_LOG_VERBOSE.Carl Eugen Hoyos2018-06-161-2/+2
|
* avcodec/aacdec_fixed: Fix undefined integer overflow in ↵Michael Niedermayer2018-06-151-1/+1
| | | | | | | | | | apply_independent_coupling_fixed() Fixes: signed integer overflow: 1195517 * 2048 cannot be represented in type 'int' Fixes: 8636/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_AAC_FIXED_fuzzer-4695836326887424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/dirac_dwt_template: Fix undefined behavior in interleave()Michael Niedermayer2018-06-151-2/+2
| | | | | | | | Fixes: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' Fixes: 8697/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5197148130902016 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/common: Fix undefined behavior in av_clip_uintp2_c()Michael Niedermayer2018-06-151-1/+1
| | | | | | | | Fixes: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 8521/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_DIRAC_fuzzer-5639024952737792 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/decode: Consider STRIDE_ALIGN in get_buffer_internal() when checking ↵Michael Niedermayer2018-06-151-1/+1
| | | | | | | | | | | | width STRIDE_ALIGN is not known in libavutil so av_image_check_size* cannot consider it Fixes: OOM Fixes: 8291/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SNOW_fuzzer-5176528009691136 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart - print errors to stderrerankor2018-06-151-17/+17
| | | | | | instead of stdout Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* configure: simplify ffnvcodec version logicTimo Rothenpieler2018-06-151-2/+2
|
* avcodec/nvenc: enable nvenc encoder instance reusePavel Koshevoy2018-06-151-2/+10
| | | | Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
* lavfi/atempo: raise max tempo limit (v2)Pavel Koshevoy2018-06-142-6/+17
|
* lavc/dpx: Reset n_datum for every new line when decoding 12bit.Carl Eugen Hoyos2018-06-152-3/+4
| | | | | Fixes odd unpacked 12bit decoding. Reported-by: Piotr Bandurski
* ffmpeg: assert that audio packet duration in process_input_packet() is non ↵Michael Niedermayer2018-06-141-0/+1
| | | | | | negative Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fftools/ffmpeg: Fallback to duration if sample rate is unavailableMichael Niedermayer2018-06-141-2/+6
| | | | | | | | | Regression since: af1761f7 Fixes: Division by 0 Fixes: ffmpeg_crash_1 Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Only set pkt->duration to non negative valuesMichael Niedermayer2018-06-141-1/+3
| | | | | Reviewed-by: Sasi Inguva <isasi@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/formats: get fflags values up-to-dateGyan Doshi2018-06-141-16/+24
|
* qt-faststart: add fate test for stco overflowerankor2018-06-132-2/+11
| | | | | | | verify that the stco atom is upgraded to co64 when the addition of moov size to the offsets results in an overflow Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart - stco offset bug fixerankor2018-06-131-55/+345
| | | | | | | | | | | | | | when the last offsets in the stco atom are close to 4GB, the addition of the moov atom size can overflow, causing corruption near the end of the mp4 file. this patch upgrades all stco atoms to co64 when such an edge case is detected. in order to accomplish this, the implementation was changed to walk the atom tree, instead of searching for the strings 'stco'/'co64'. this was required since when an stco atom is changed to co64, its size changes, and the sizes of all containing atoms (moov, trak, etc.) have to be updated as well. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* qt-faststart: add validation on ftyp atom sizeerankor2018-06-131-0/+6
| | | | | | avoid trying to allocate an unreasonably sized buffer on corrupt files Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg4videodec: Clear bits_per_raw_sample if it has originated from a ↵Michael Niedermayer2018-06-131-0/+6
| | | | | | | | | | previous instance Fixes: assertion failure Fixes: ffmpeg_crash_5.avi Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/devices: order alphabetically and add missing v4l2 outdevLou Logan2018-06-132-140/+143
| | | | Signed-off-by: Lou Logan <lou@lrcd.com>
* avformat/movenc: fix recognization of cover image streamsTimo Teräs2018-06-131-18/+18
| | | | | | | | | | For chapter images, the mov demux produces streams with disposition set to attached_pic+timed_thumbnails. This patch fixes to properly recognize streams that should be encoded as cover image (ones with only and only attached_pic disposition set). Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/movenc: properly handle cover image codecsTimo Teräs2018-06-131-18/+12
| | | | | | | | | | | Find codec tag for attached images using appropriate list of supported image formats. This fixes writing the cover image to m4v/m4a and other container formats that do not allow these codecs as a track. Signed-off-by: Timo Teräs <timo.teras@iki.fi> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mov: Add check for per-sample IV size.Jacob Trimble2018-06-131-2/+7
| | | | | | | Found by Chrome's ClusterFuzz: http://crbug.com/849062. Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* configure: The eac3_core bitstream filter needs the ac3 parser.Carl Eugen Hoyos2018-06-131-0/+1
| | | | Fixes linking with "--disable-everything --enable-bsf=eac3_core".
* avformat: deprecate unused MP4A_LATM flagGyan Doshi2018-06-135-5/+10
| | | | | | | A generic lavf flag for AAC LATM packetization for the RTP muxer was added in ef409645f0 and then made inert 20 days later in 0832122880 when a private muxer option was added and the generic flag no longer read.
* avdevice/decklink_dec: capture timecode to metadata when requestedJon Morley2018-06-136-1/+69
| | | | | | | | | | If the user provides a valid timecode_format look for timecode of that format in the capture and if found store it on the video avstream's metadata. Slightly modified by Marton Balint to capture per-frame timecode as well. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_common: Move DECKLINK_* string functions into headerJon Morley2018-06-132-30/+30
| | | | | | | This allows other decklink source access to these cross-platform convenience functions. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: use std::atomic for decklink_input_callback refcountingMarton Balint2018-06-132-22/+14
| | | | | | Also remove the callback from the context, and add proper error handling. Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: use a custom memory allocatorMarton Balint2018-06-131-0/+50
| | | | | | | The default memory allocator is limited in the max number of frames available, and therefore caused frame drops if the frames were not freed fast enough. Signed-off-by: Marton Balint <cus@passwd.hu>
* lavc/qsv: suppress code scan complainZhong Li2018-06-131-1/+4
| | | | Suppress the complain "variables 'type' is used but maybe uninitialized".
* pixdesc: Only check against valid entries when iterating over lists of enumsDerek Buitenhuis2018-06-121-4/+24
| | | | | | | | | | | Some of these enums have gaps in between their values, since they correspond to the values in various specs, instead of being an incrementing list. Fixes segfaults when, for example, using the valid API call: av_color_primaries_from_name("jecdec-p22"); Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/h264_slice: Fix overflow in recovery_frame computationMichael Niedermayer2018-06-111-3/+9
| | | | | | | | Fixes: signed integer overflow: 15 + 2147483646 cannot be represented in type 'int' Fixes: 8381/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-6225533137321984 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_ps: Move MAX_LOG2_MAX_FRAME_NUM to header so it can be used in ↵Michael Niedermayer2018-06-112-1/+1
| | | | | | h264_sei Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264_mc_template: Only prefetch motion if the list is used.Michael Niedermayer2018-06-111-1/+2
| | | | | | | | Fixes: index 59 out of bounds for type 'H264Ref [48]' Fixes: 8232/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_H264_fuzzer-5703295145345024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/xwddec: Use ff_set_dimensions()Michael Niedermayer2018-06-111-2/+6
| | | | | | | | | Fixes: OOM Fixes: 8178/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_XWD_fuzzer-4844793342459904 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/wavpack: Fix overflow in adding tailMichael Niedermayer2018-06-111-1/+1
| | | | | | | | Fixes: signed integer overflow: 2146907204 + 26846088 cannot be represented in type 'int' Fixes: 8105/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_WAVPACK_fuzzer-6233036682166272 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/libzvbi-teletextdec: add support for selecting subtitle pages onlyMarton Balint2018-06-103-13/+27
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* lsws/rgb2rgb_template: Do not compile unneeded shuffle functions on big-endian.Carl Eugen Hoyos2018-06-101-0/+2
| | | | | | | | Fixes the following warnings: In file included from libswscale/rgb2rgb.c:128:0: libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3210_c' defined but not used libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_3012_c' defined but not used libswscale/rgb2rgb_template.c:346:13: warning: 'shuffle_bytes_1230_c' defined but not used
* lavc/aacsbr: fix make checkheaders warningJun Zhao2018-06-102-12/+12
| | | | | | | move the the function aacsbr_tableinit definition from header file to .c file to fix make checkheaders warning. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* lavc/dolby_e: fix make checkheaders warningJun Zhao2018-06-102-86/+87
| | | | | | | move the the function init_tables() definitions from header file to .c file to fix make checkheaders warning. Signed-off-by: Jun Zhao <mypopydev@gmail.com>
* ffmpeg: Fail if the user requested impossible subtitle encoding.Carl Eugen Hoyos2018-06-091-0/+17
| | | | Fixes ticket #7239.
* avformat/mov: Fix reading saio/saiz for clear content.Jacob Trimble2018-06-091-16/+55
| | | | | | | | | | | This validates that the common encryption saio/saiz atoms only appear when the data is actually encrypted. This also ignores those atoms in clear content. Found by Chrome's ClusterFuzz: http://crbug.com/850389 Signed-off-by: Jacob Trimble <modmaker@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/filters: change subtitles example to hint at correct color syntaxGyan Doshi2018-06-091-2/+2
| | | | libass changed their color syntax in 2015 to TBGR
* avformat/mxfdec: add support for recognizing timed text streamsMarton Balint2018-06-081-0/+8
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/avcodec.h: add AV_CODEC_ID_TTMLMarton Balint2018-06-083-2/+11
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: remove check for NULL MXFTrack in mxf_set_ptsMarton Balint2018-06-081-1/+1
| | | | | | It cannot happen for video streams. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: only disallow seek on metadata streamsMarton Balint2018-06-081-1/+1
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: recognize SMPTE 436 VBI dataMarton Balint2018-06-081-0/+2
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/mxfdec: use MXFCodecUL struct to store essence description for ↵Marton Balint2018-06-082-12/+5
| | | | | | data_essence_container_uls Signed-off-by: Marton Balint <cus@passwd.hu>
* ffmpeg: mark sseof as an input-only optionGyan Doshi2018-06-092-2/+2
|
OpenPOWER on IntegriCloud