summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
| * cbs: Allocate the context inside the init functionMark Thompson2018-02-20
| | | | | | | | | | ... instead of making callers allocate it themselves. This is more consistent with other APIs in libav.
* | avformat/movenc: addition of flag to fragment at every frameVishwanath Dixit2018-02-20
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/diracdec: Fix integer overflow in mv computationMichael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: signed integer overflow: -2072 + -2147483646 cannot be represented in type 'int' Fixes: 6097/clusterfuzz-testcase-minimized-5034145253163008 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_parse: Clear invalid chroma weights in ff_h264_pred_weight_table()Michael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: 6037/clusterfuzz-testcase-minimized-5030249784934400 Fixes: signed integer overflow: 256 * 16992036 cannot be represented in type 'int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/aacdec_templat: Fix integer overflow in apply_ltp()Michael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: signed integer overflow: -1625276744 + -1041893960 cannot be represented in type 'int' Fixes: 5948/clusterfuzz-testcase-minimized-5791479856365568 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/jpeg2000dwt: Fix integer overflows in sr_1d53()Michael Niedermayer2018-02-20
| | | | | | | | | | | | | | Fixes: 5918/clusterfuzz-testcase-minimized-5120505435652096 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/diracdec: Use int64 in global mv to prevent overflowMichael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | Fixes: runtime error: signed integer overflow: 361 * -6295541 cannot be represented in type 'int' Fixes: 5911/clusterfuzz-testcase-minimized-6450382197751808 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dxtory: Remove code that corrupts dimensionsMichael Niedermayer2018-02-20
| | | | | | | | | | | | | | | | | | | | Fixes: Timeout Fixes: 5796/clusterfuzz-testcase-minimized-5206729085157376 Does someone have a valid sample that triggers this path ? Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/matroskadec: fix return valueJames Almer2018-02-20
| | | | | | | | | | | | err is already an AVERROR. Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskadec: free the packet on webvtt side data allocation failureJames Almer2018-02-20
| | | | | | | | | | | | Fixes potential memory leaks Signed-off-by: James Almer <jamrial@gmail.com>
* | avformat/matroskadec: ignore CodecPrivate if the stream is VP9James Almer2018-02-19
| | | | | | | | | | | | | | | | | | | | | | Defined in a recent revision of https://www.webmproject.org/docs/container/ This prevents storing the contents of CodecPrivate into extradata for a codec that doesn't need nor expect any. It will among other things prevent matroska specific binary data from being dumped onto other formats during remuxing. Signed-off-by: James Almer <jamrial@gmail.com>
* | docs/codecs: remove dead codec debug optionsGyan Doshi2018-02-19
| | | | | | | | | | | | FF_API_DEBUG_MV has been disabled. Related options removed from docs. Mention of non-existent debug option value 'pts' also removed.
* | Merge commit 'cc1c94dacd0642ac1a6cad45deb65071f127d91a'James Almer2018-02-19
|\| | | | | | | | | | | | | * commit 'cc1c94dacd0642ac1a6cad45deb65071f127d91a': configure: Pass the right machine types to dlltool for arm and arm64 mingw Merged-by: James Almer <jamrial@gmail.com>
| * configure: Pass the right machine types to dlltool for arm and arm64 mingwMartin Storsjö2018-02-19
| | | | | | | | | | | | These are supported by llvm-dlltool. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '97eee953e639bd4d17a9f9398293775277d00505'James Almer2018-02-19
|\| | | | | | | | | | | | | | | | | * commit '97eee953e639bd4d17a9f9398293775277d00505': Revert "configure: Stop using dlltool to create an import library" This commit is a noop, see 6d8bef8c05ea5dcb95f5930954cd6bd28868c2c9 Merged-by: James Almer <jamrial@gmail.com>
| * Revert "configure: Stop using dlltool to create an import library"Martin Storsjö2018-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 67c72f08a4707c18a67a4734660e3a23cc9488b6. While the linker produced import libraries might work with MSVC in simple test cases, they don't if e.g. linking to multiple GNU ld produced import libraries at the same time. (They end up importing functions from the wrong libraries.) The ones produced by dlltool work fine though. This issue was pointed out by Hendrik Leppkes. Signed-off-by: Martin Storsjö <martin@martin.st>
* | build: restore using dlltool/lib.exe for creating Win32 .lib filesHendrik Leppkes2018-02-19
| | | | | | | | | | | | | | The GCC generated import libraries don't work properly when being imported by MSVC, resulting in missing symbols at runtime. This reverts 5b5365fe9 and partially reverts changes from 98a9b1f0d
* | avcodec/mediacodecdec: refactor to take advantage of new decoding apiAman Gupta2018-02-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This refactor splits up the main mediacodec decode loop into two send/receive helpers, which are then used to rewrite the receive_frame callback and take full advantage of the new decoding api. Since we can now request packets on demand with ff_decode_get_packet(), the fifo buffer is no longer necessary and has been removed. This change was motivated by behavior observed on certain Android TV devices, featuring hardware mpeg2/h264 decoders which also deinterlace content (to produce multiple frames per field). Previously, this code caused buffering issues because queueInputBuffer() was always invoked before each dequeueOutputBuffer(), even though twice as many output buffers were being generated. With this patch, the decoder will always attempt to drain new frames first before sending more data into the underlying codec. Signed-off-by: Matthieu Bouron <matthieu.bouron@gmail.com>
* | fate: add tests for pan audio filterTobias Rapp2018-02-19
| | | | | | | | Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* | swresample/rematrix: fix update of channel matrix if input or output layout ↵Tobias Rapp2018-02-19
| | | | | | | | | | | | | | | | | | is undefined Prefer direct in/out channel count values over channel layout, when available. Fixes a pan filter bug (ticket #6790). Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
* | avcodec/dirac_dwt_template: Fix Integer overflow in horizontal_compose_dd137i()Michael Niedermayer2018-02-18
| | | | | | | | | | | | | | | | Fixes: 5894/clusterfuzz-testcase-minimized-5315325420634112 Fixes: runtime error: signed integer overflow: 2147483647 + 1 cannot be represented in type 'int' Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/hevcdec: Check luma/chroma_log2_weight_denomMichael Niedermayer2018-02-18
| | | | | | | | | | | | | | | | Fixes: signed integer overflow: 3 + 2147483647 cannot be represented in type 'int' Fixes: 5888/clusterfuzz-testcase-minimized-5634701067812864 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | libavfilter/vf_fps: Add more fate testsCalvin Walton2018-02-17
| | | | | | | | | | | | | | | | These tests cover specific rounding behaviour, to ensure that I don't introduce any regressions with the rewritten "activate" callback based fps filter. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264: Increase field_poc to 64bit in ff_h264_init_poc() to detect ↵Michael Niedermayer2018-02-17
| | | | | | | | | | | | | | | | | | | | overflows Fixes: Integer overflow Fixes: 5746/clusterfuzz-testcase-minimized-6270097623613440 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/jpeg2000dec: Use av_image_check_size2()Michael Niedermayer2018-02-17
| | | | | | | | | | | | | | | | Fixes: OOM Fixes: 5733/clusterfuzz-testcase-minimized-4906757966004224 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/vp8: Check for bitstream end before vp7_fade_frame()Michael Niedermayer2018-02-17
| | | | | | | | | | | | | | | | Fixes: Timeout Fixes: 5653/clusterfuzz-testcase-5497680018014208 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/exr: Check remaining bits in last get code loopMichael Niedermayer2018-02-17
| | | | | | | | | | | | | | | | Fixes: runtime error: shift exponent -7 is negative Fixes: 3902/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_EXR_fuzzer-6081926122176512 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 integer overflow in av_clip_uint8_c() and av_clip_uint16_c()Michael Niedermayer2018-02-17
| | | | | | | | | | | | | | | | Fixes: 5567/clusterfuzz-testcase-minimized-5769966247739392 Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate/mpegps: add tests for PCM_DVD stream remuxGyan Doshi2018-02-16
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/mpegenc - accept PCM_DVD streamsGyan Doshi2018-02-16
| | | | | | | | | | | | | | | | PCM_S16BE stream packets in MPEG-PS have a 3-byte header and are recognized as PCM_DVD by the demuxer which prevents their correct remuxing in MPEG-1/2 PS. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/crypto: change length parameter to size_t on the remaining modulesJames Almer2018-02-15
| | | | | | | | | | | | | | See 651ee9346105b9d492e01172ab447c04d03fa32e fcc4ed1efa1a7575dc45fe57ce552af331941469 Signed-off-by: James Almer <jamrial@gmail.com>
* | avdevice/decklink_dec: Fix ;;Michael Niedermayer2018-02-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avfilter/avf_avectorscope: Fix ;;Michael Niedermayer2018-02-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/h264_cabac: Tighten allowed coeff_abs rangeMichael Niedermayer2018-02-15
| | | | | | | | | | | | | | | | | | | | Fixes: integer overflows Reported-by: "Xiaohan Wang (王消寒)" <xhwang@chromium.org> Based on limits in "8.5 Transform coefficient decoding process and picture construction process prior to deblocking filter process" Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/ffv1: Support for GBRAP10 and GBRAP12Jérôme Martinez2018-02-15
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avformat/aviobuf: zero initialize the AVIOContext in ffio_init_context()James Almer2018-02-14
| | | | | | | | | | | | | | | | This makes sure no field is ever used uninitialized. Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com> Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec: remove unnecessary calls to ff_init_buffer_info()James Almer2018-02-14
| | | | | | | | | | | | | | | | And remove the function altogether while at it. It's a duplicate of another. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avpacket: reset dst side_data fields in av_packet_copy_propsYusuke Nakamura2018-02-14
| | | | | | | | | | | | | | | | | | | | This effectively copies the side data elements from src instead of potentially merging them with those already existing in dst. This by extension also removes the only dependency on existing values in the dst packet. Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avfilter/af_loudnorm: correctly initialize PTSNiklas Haas2018-02-14
| | | | | | | | | | | | | | | | Right now, the PTS always starts out as 0, which causes problems on a seek or when inserting this filter mid-stream. Initialize it instead to AV_NOPTS_VALUE and copy the PTS from the first frame instead if this is the case.
* | lavf/rtpdec*: Constify all RTPDynamicProtocolHandler.Carl Eugen Hoyos2018-02-14
| | | | | | | | Reviewed-by: Muhammad Faiz
* | avcodec/h264_cavlc: Set valid qscale value in ff_h264_decode_mb_cavlc()Xiaohan Wang2018-02-14
| | | | | | | | | | | | | | | | | | | | | | When ff_h264_decode_mb_cavlc() failed due to wrong sl->qscale values, e.g. dquant out of range, set the qscale to be a valid value before returning -1 and exiting the function. The qscale value can be used later e.g. in loop filter. BUG=806122 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avutil/opt: remove ABI hackswm42018-02-13
| | | | | | | | | | These were needed for ABI compatibility with Libav. We don't need them anymore.
* | avdevice/decklink_dec: extract NTSC VANCRay Tiley2018-02-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This changes how NTSC VANC is extracted from the buffer. In NTSC the vanc data is interleaved between luma and chroma, and not just the luma as in high definition resolutions. In my testing this allows a decklink card encoding valid NTSC closed captions to pass the caption data to the x264 encoder. Updated with reviews from Devin Heitmueller and Marton Balint. Signed-off-by: Ray Tiley <raytiley@gmail.com> Signed-off-by: Marton Balint <cus@passwd.hu>
* | avcodec/mpeg12enc: add support for specifying video_format in the ↵Marton Balint2018-02-13
| | | | | | | | | | | | | | | | | | | | | | sequence_display_extension In a recent commit the default was changed from 0 (component) to 5 (unspecified), however some standards require using 0. With this option, the user will be able to do so. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* | Merge commit 'a674b31240e99a369059385b03582b35629d190f'Mark Thompson2018-02-12
|\| | | | | | | | | | | | | | | | | * commit 'a674b31240e99a369059385b03582b35629d190f': build: Ignore generated mpeg12framerate test binary This commit is a noop, see fb791d28766bdacbb685a77c381101afc98ed58b Merged-by: Mark Thompson <sw@jkqxz.net>
| * build: Ignore generated mpeg12framerate test binaryDiego Biurrun2018-02-12
| |
* | Merge commit '5b6213ef6bf5e0781c83e86926eb0b33a98dc185'Mark Thompson2018-02-12
|\| | | | | | | | | | | | | | | | | * commit '5b6213ef6bf5e0781c83e86926eb0b33a98dc185': avcodec/vc1dec: fix mby_start for interlaced content This commit is a noop, see c9f72e4b81ae44d1a61459e85a3e1216a239a8ee Merged-by: Mark Thompson <sw@jkqxz.net>
| * avcodec/vc1dec: fix mby_start for interlaced contentMichael Niedermayer2018-02-11
| | | | | | | | | | | | Bug-Id: 1100 Bug-Id: ffmpeg/Ticket2531 Cc: libav-stable@libav.org
* | Merge commit '9b09792c90b580842157ca8ce534be434725a841'Mark Thompson2018-02-12
|\| | | | | | | | | | | | | | | | | | | * commit '9b09792c90b580842157ca8ce534be434725a841': lavc/qsv: default la_ds to MFX_LOOKAHEAD_DS_UNKNOWN This commit is a noop: the code in FFmpeg is slightly different and never contained the invalid value. Merged-by: Mark Thompson <sw@jkqxz.net>
| * lavc/qsv: default la_ds to MFX_LOOKAHEAD_DS_UNKNOWNRuiling Song2018-02-12
| | | | | | | | | | | | | | | | MFX_LOOKAHEAD_DS_UNKNOWN means auto. -1 is not a valid value. Signed-off-by: Ruiling Song <ruiling.song@intel.com> Signed-off-by: Maxym Dmytrychenko <maxim.d33@gmail.com>