summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avcodec: Mark some codecs with threadsafe init as suchDerek Buitenhuis2017-02-07
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_scale: Fix chroma positioning for 4:2:0 pixel formatMaksym Veremeyenko2017-02-07
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pictordec: Fix logic errorMichael Niedermayer2017-02-07
| | | | | | | Fixes: 559/clusterfuzz-testcase-6424225917173760 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* matroska: demux BluRay text subtitlesPetri Hintukainen2017-02-07
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/filters: extend midequalizer descriptionPaul B Mahol2017-02-07
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/hlsenc: add hls_flag option to write segments to temporary file ↵Aman Gupta2017-02-07
| | | | | | | | | | | | | | | | until complete Adds a `-hls_flags +temp_file` which will write segment data to filename.tmp, and then rename to filename when the segment is complete. This patch is similar in spirit to one used in Plex's ffmpeg fork, and allows a transcoding webserver to ensure incomplete segment files are never served up accidentally. Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com> Reviewed-by: Bodecs Bela <bodecsb@vivanet.hu> Signed-off-by: Aman Gupta <aman@tmm1.net> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* configure: use dashes instead of slashes in lib.exe invocationHendrik Leppkes2017-02-06
| | | | | This avoids issues with wrong parameter translation by msys on some systems, and the Windows SDK tools accept both forms equally.
* avcodec/movtextdec: Fix decode_styl() cleanupMichael Niedermayer2017-02-06
| | | | | | | | Fixes: null pointer dereference Fixes: 555/clusterfuzz-testcase-5986646595993600 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_midequalizer: Remove duplicate includeMichael Niedermayer2017-02-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/matroskadec: fix is_keyframe for early BlocksChris Cunningham2017-02-06
| | | | | | | | | | | | | | | Blocks are marked as key frames whenever the "reference" field is zero. This breaks for non-keyframe Blocks with a reference timestamp of zero. The likelihood of reference timestamp being zero is increased by a longstanding bug in muxing that encodes reference timestamp as the absolute time of the referenced frame (rather than relative to the current Block timestamp, as described in MKV spec). Now using INT64_MIN to denote "no reference". Reported to chromium at http://crbug.com/497889 (contains sample)
* ffmpeg: Remove redundant null checkMichael Niedermayer2017-02-06
| | | | | | Fixes CID1396245 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/pthread_frame: Check av_packet_ref() for failureMichael Niedermayer2017-02-06
| | | | Fixes CID1396242
* avfilter/af_pan: fix null pointer dereference on empty tokenMarton Balint2017-02-05
| | | | | | Fixes Coverity CID 1396254. Signed-off-by: Marton Balint <cus@passwd.hu>
* vf_scale_vaapi: Add missing return value checksMark Thompson2017-02-05
| | | | Fixes CID 1374119.
* ffmpeg_vaapi: Always set hwaccel_ctx, so it gets properly cleaned up on errorMark Thompson2017-02-05
| | | | Fixes CID 1398954.
* Revert "avutil/hwcontext_vaapi: fix SEGV in vaTerminate when vaInitialize fails"Mark Thompson2017-02-05
| | | | | | | | | | | The original code is correctly following the API - vaTerminate() must be called to free the resources of a VADisplay after it is created by any of the vaGetDisplay*() calls; it is not necessary to have successfully called vaInitialize() on it. The segfaults which prompted this change must therefore be bugs in libva or the driver it loads. This reverts commit 3606602f1137552ea54f2c259eb140c1e3c026d4.
* ffmpeg_vaapi: Unreference global device before setting itMark Thompson2017-02-05
| | | | | This currently leaks if multiple device options are specified on the command line.
* avfilter/ebur128: fix relative threshold calculation for multiple contextsMarton Balint2017-02-04
| | | | | | | | This reworks the code a bit and also disallows NULL contexts. Fixes Coverity CID 1396273, 1396279. Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/ebur128: do not allow null ebur128 context in ↵Marton Balint2017-02-04
| | | | | | | | | | ff_ebur128_relative_threshold The user should supply a proper context. Fixes Coverity CID 1396246. Signed-off-by: Marton Balint <cus@passwd.hu>
* doc/muxers: remove confusing example for segment muxer option ↵Marton Balint2017-02-04
| | | | | | | | | | clocktime_wrap_duration Detecting a leap second depends on a lot of things, segment time, segment offset, system leap second implementation, the removed part is a huge simplification which can be misleading, so it is best to remove it. Signed-off-by: Marton Balint <cus@passwd.hu>
* avformat/segment: remove last_cut check when detecting a new segmentMarton Balint2017-02-04
| | | | | | | | | Not starting a new segment if the elapsed microsecs since the start of the day equals the the elapsed microsecs since the start of the day at the time of the last cut seems plain wrong to me, Deti do you remember the original reason behind this check? Signed-off-by: Marton Balint <cus@passwd.hu>
* ffplay: fix borderless mode on WindowsMarton Balint2017-02-04
| | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter: add midequalizer filterPaul B Mahol2017-02-04
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/pngdec: Check trns more completelyMichael Niedermayer2017-02-04
| | | | | | | | Fixes out of array access Fixes: 546/clusterfuzz-testcase-4809433909559296 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* opus_rc: rename total_bits_used to total_bits and #define some constantsRostislav Pehlivanov2017-02-04
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* configure: instruct MSVC 2015 to properly process UTF-8 string literalsHendrik Leppkes2017-02-04
| | | | | | | | | | | Without the /UTF-8 switch, the MSVC compiler treats all files as in the system codepage, instead of in UTF-8, which causes UTF-8 string literals to be interpreted wrong. This switch was only introduced in VS2015 Update 2, and any earlier versions do not have an equivalent solution. Fixes fate-sub-scc on MSVC 2015+
* configure: add nologo switch to invocation of lib.exeHendrik Leppkes2017-02-04
| | | | | This suppresses the startup banner, which is consistent with all other calls to the Windows SDK binaries.
* avcodec/interplayvideo: Move parameter change check upMichael Niedermayer2017-02-04
| | | | | | | Fixes out of array read Fixes: 544/clusterfuzz-testcase-5936536407244800.f8bd9b24_8ba77916_70c2c7be_3df6a2ea_96cd9f14 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/flacdsp: Avoid undefined operations in non debug buildsMichael Niedermayer2017-02-04
| | | | | | | | | | | | | | | | | | | | | This fixes ubsan warnings in non debug builds by using unsigned operations in debug builds the correct signed operations are retained so that overflows (which should not occur in valid files and may indicate problems in the DSP code or decoder) can be detected. Alternatively they can be changed to unsigned unconditionally, then its not possible though to detect overflows easily if someone wants to test the DSP code for overflows. The 2nd alternative would be to leave the code as it is and accept that there are undefined operations in the DSP code and that ubsan output is full of them in some cases. Similar changes would be needed in some other DSP routines Suggested-by: Matt Wolenetz <wolenetz@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/flacdec: Check for invalid vlcsMichael Niedermayer2017-02-04
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc: clarify option on looping infinitely in movie filterWerner Robitza2017-02-03
| | | | | | Clarify that setting loop=0 is required to make the stream loop infinitely, rather than saying that a value "less than 1" is needed. Signed-off-by: Lou Logan <lou@lrcd.com>
* avfilter/vf_unsharp: Free out AVFrame on errorMichael Niedermayer2017-02-03
| | | | | | | Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_perspective: Free out AVFrame on errorMichael Niedermayer2017-02-03
| | | | | | | Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_fieldhint: Free out AVFrame on errorMichael Niedermayer2017-02-03
| | | | | | | Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_deshake: Free out AVFrame on errorMichael Niedermayer2017-02-03
| | | | | | | Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/vf_ciescope: Free out AVFrame on errorMichael Niedermayer2017-02-03
| | | | | | | Fixes memleak Fixes part of CID1197065 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ivi: use init_get_bits8()Paul B Mahol2017-02-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/metasound: use init_get_bits8()Paul B Mahol2017-02-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/xsubdec: use init_get_bits8()Paul B Mahol2017-02-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/mpc7: use init_get_bits8()Paul B Mahol2017-02-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/mpc7: return meaningful error valuesPaul B Mahol2017-02-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/mpc8: use init_get_bits8()Paul B Mahol2017-02-03
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavf/isom: Support DTS Express in mov.Carl Eugen Hoyos2017-02-03
| | | | Fixes ticket #6124.
* doc: add a lexiconClément Bœsch2017-02-03
|
* avcodec/ituh263dec: Implement U263s interpretation of H.263 B framesMichael Niedermayer2017-02-03
| | | | | | Fixes Ticket1536 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/hwcontext_vaapi: fix SEGV in vaTerminate when vaInitialize failsAman Gupta2017-02-02
| | | | | | | | | | | | | | Program terminated with signal SIGSEGV, Segmentation fault. #0 0x0000000000aff8a4 in vaTerminate () #1 0x0000000000ae50ce in vaapi_device_free (ctx=<optimized out>) at libavutil/hwcontext_vaapi.c:882 #2 0x0000000000ae1f9e in hwdevice_ctx_free (opaque=<optimized out>, data=<optimized out>) at libavutil/hwcontext.c:66 #3 0x0000000000ad856f in buffer_replace (src=0x0, dst=0x7fffa26ef1b8) at libavutil/buffer.c:119 #4 av_buffer_unref (buf=buf@entry=0x7fffa26ef1f8) at libavutil/buffer.c:129 #5 0x0000000000ae299f in av_hwdevice_ctx_create (pdevice_ref=0x170ac50 <hw_device_ctx>, type=type@entry=AV_HWDEVICE_TYPE_VAAPI, device=<optimized out>, opts=opts@entry=0x0, flags=flags@entry=0) at libavutil/hwcontext.c:494 #6 0x0000000000400968 in vaapi_device_init (device=<optimized out>) at ffmpeg_vaapi.c:223 Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avcodec/utils: Fix memleak with subtitles and sidedataMichael Niedermayer2017-02-03
| | | | | | | Fixes: 454/fuzz-3-ffmpeg_SUBTITLE_AV_CODEC_ID_MOV_TEXT_fuzzer Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/targets/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/scale: refactor common code for scaling height/width expressionsAman Gupta2017-02-02
| | | | | | | Implements support for height/width expressions in vf_scale_vaapi, by refactoring common code into a new libavfilter/scale.c Signed-off-by: Mark Thompson <sw@jkqxz.net>
* x86/rv34dsp: add ff_rv34_idct_dc_add_sse2James Almer2017-02-02
| | | | | | | Also disable ff_rv34_idct_dc_add_mmx on x86_64 as the presence of sse2 is guaranteed in such builds. Signed-off-by: James Almer <jamrial@gmail.com>
* x86/vp8dsp: add ff_vp8_idct_dc_add_sse2James Almer2017-02-02
| | | | | | | Also disable ff_vp8_idct_dc_add_mmx on x86_64 as the presence of sse2 is guaranteed in such builds. Signed-off-by: James Almer <jamrial@gmail.com>