summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* mvdec: validate sample_rateAndreas Cadhalpun2016-11-07
| | | | | | | A negative sample rate doesn't make sense and triggers assertions in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mpeg4audio: validate sample_rateAndreas Cadhalpun2016-11-07
| | | | | | | | | | A negative sample rate doesn't make sense and triggers assertions in av_rescale_rnd. Also check for errors from avpriv_mpeg4audio_get_config in ff_mp4_read_dec_config_descr. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mov: validate sidx timescaleAndreas Cadhalpun2016-11-07
| | | | | | | A negative timescale doesn't make sense and triggers assertions in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mov: validate time_scaleAndreas Cadhalpun2016-11-07
| | | | | | | A negative timescale doesn't make sense and triggers assertions in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* mov: validate sample_rateAndreas Cadhalpun2016-11-07
| | | | | | | | | | A negative sample rate doesn't make sense and triggers assertions in av_rescale_rnd. fate-aac-al07_96 fails if sample_rate == 0 is rejected in ff_mov_read_stsd_entries. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* ffmdec: validate sample_rateAndreas Cadhalpun2016-11-07
| | | | | | | A negative sample rate doesn't make sense and triggers assertions in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* bfi: validate sample_rateAndreas Cadhalpun2016-11-07
| | | | | | | | A negative sample rate doesn't make sense and triggers assertions in av_rescale_rnd. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* adxdec: validate sample_rateAndreas Cadhalpun2016-11-07
| | | | | | | A negative sample rate doesn't make sense and triggers assertions in av_rescale_rnd. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avfilter/vf_drawtext: fixed default/flt formatting ignoring offset parameterAlex Agranovsky2016-11-06
| | | | | Signed-off-by: Alex Agranovsky <alex@sighthound.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/flvenc: support mp3 audio with 48khzfuqiuping2016-11-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/tcp: Put struct sockaddr_in6 under #ifMichael Niedermayer2016-11-06
| | | | | | | Fixes: error: dereferencing pointer to incomplete type Tested-by: Dave Yeo <daveryeo@telus.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter/af_volumedetect: Remove dependency on channel layoutMichael Niedermayer2016-11-06
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: parameters for filter thread countsDeHackEd2016-11-06
| | | | | | Enables specifying how many threads are available to each filtergraph. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc/libx26[45]: Add documentation for forced-idrDerek Buitenhuis2016-11-06
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavf/mpegtsenc: write metadata descriptor for timed ID3 packetsStefano Sabatini2016-11-06
| | | | | | | | This is required since some programs are not able to correctly recognize the metadata. See H.222, 2.6.58 Metadata pointer descriptor. putstr8() is modified in order to allow to skip writing the string length.
* lavf/mpegtsenc: move putstr8 definition upStefano Sabatini2016-11-06
| | | | This allows to use the function in a future commit.
* avformat/mux: remove unnecessary autobsf hackJames Almer2016-11-05
| | | | | | autobsf has been ported to the new bsf API. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/framehash: also print channel layout as a stringJames Almer2016-11-05
| | | | | | | | This should be more useful for users since numerical values for channel layout can be confusing and unintuitive. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* MAINTAINERS: Replace QSV maintainerMichael Niedermayer2016-11-06
| | | | | | Ivan has a shortage of time to take care of QSV, Mark agreed to take over. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avutil/softfloat_ieee754: make all functions inlineJames Almer2016-11-05
| | | | | | | Removes "defined but not used" warnings Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* mxfdec: fix NULL pointer dereferenceAndreas Cadhalpun2016-11-05
| | | | | | | Metadata streams have priv_data set to NULL. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* lzf: update pointer p after reallocAndreas Cadhalpun2016-11-05
| | | | | | | This fixes heap-use-after-free detected by AddressSanitizer. Reviewed-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avformat/tcp: workaround for IOS9 getaddrinfo in IPv6 only network use ↵liu jc2016-11-05
| | | | | | | hardcode IPv4 address can not resolve port number. Signed-off-by: liujingchao <jcliu@outlook.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/rtpdec: Add support for 24 bit RTSP audio playbackTimur Aydin2016-11-05
| | | | | | | | | When ffplay is used to play from the RTSP URL that serves 24 bit audio content, ffplay fails to recognize the audio codec format. The attached patch adds support for playing 24 bit audio content over RTSP by defining a dynamic payload handler for "L24". Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: Remove show_formats for fate-mov-zombie testMichael Niedermayer2016-11-05
| | | | | | | This includes the absolute path Found-by: jamrial Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add zombie testMichael Niedermayer2016-11-05
| | | | | | This test tests some odd sample with odd aspect ratio Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/nvenc.c: Use new safe dlopen code.Matt Oliver2016-11-05
| | | | Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* avformat/avisynth.c: Use new safe dlopen code.Matt Oliver2016-11-05
| | | | Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* avutil/hwcontext_dxva.c: Use new safe dlopen code.Matt Oliver2016-11-05
| | | | Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* compat/w32dlfcn.h: Add safe win32 dlopen/dlclose/dlsym functions.Matt Oliver2016-11-05
| | | | Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* ffmpeg: don't overwrite av_bsf_receive_packet return value before checking itJames Almer2016-11-05
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/rawdec: check for side data before checking its sizeJames Almer2016-11-04
| | | | | | | Fixes valgrind warnings about usage of uninitialized values. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* fate: add bsf tests for ticket 5927James Almer2016-11-04
| | | | | Tested-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/mux: split side data before internal auto BSFMichael Niedermayer2016-11-04
| | | | | | | | | The bitstream filters do not work with merged in side data This leaves the input packet split if it is being split. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* Revert "avformat/mux: split side data earlier in av_write_frame and ↵James Almer2016-11-04
| | | | | | | | | | | av_interleaved_write_frame" This reverts commit fba2a8a254997e0db39a30438e96e5f3e44c669a. The changes were right for av_write_frame() but not for av_interleaved_write_frame(). The following commit will fix this in a simpler way. Signed-off-by: James Almer <jamrial@gmail.com>
* lavf/movenc: Do not print an error when muxing gray8 rawvideo.Carl Eugen Hoyos2016-11-05
| | | | This was fixed in 9a2778082121ea44d06a2f00f822ea99109c7fd8
* doc/examples: add fuzz target for individual ffmpeg APIs for in-process ↵Thomas Garnier2016-11-04
| | | | | | fuzzing with libFuzzer, AFL, and similar fuzzing engines. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avformat/mux: split side data earlier in av_write_frame and ↵James Almer2016-11-04
| | | | | | | | | | | av_interleaved_write_frame Similarly, merge it back before returning. Fixes ticket #5927. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* diracdec: check return code of get_buffer_with_edgeAndreas Cadhalpun2016-11-04
| | | | | | | If it fails, buffers aren't allocated, causing NULL pointer dereferencing. Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* diracdec: clear slice_params_num_buf on allocation failureAndreas Cadhalpun2016-11-04
| | | | | | | | | | | Otherwise it can be non-zero next time decode_lowdelay is called, causing slice_params_buf not to be allocated, leading to a NULL pointer dereference. The problem was introduced in commit dcad4677d637cd2f701917e38361fa96b8c9a418. Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* diracdec: use correct buffer for slice_params_buf reallocAndreas Cadhalpun2016-11-04
| | | | | | | | | | This fixes a double-free detected by AddressSanitizer. The problem was introduced in commit dcad4677d637cd2f701917e38361fa96b8c9a418. Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* avcodec/hap: consistent name for codecTom Butterworth2016-11-04
| | | | | | | "Vidvox Hap", not "Vidvox Hap encoder" or "Vidvox Hap decoder". Fixes bad name in "ffmpeg -codecs", matches other codec naming. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* qsvenc: do not re-execute encoding on all positive status codesAnton Khirnov2016-11-04
| | | | | | | It should only be done for DEVICE_BUSY/IN_EXECUTION (cherry picked from commit 0956fd460681e8ccbdae19f135f0d3970bf95c2f) Fixes ticket #5924.
* lavf/mux: Add missing CR/LF to error messages.Carl Eugen Hoyos2016-11-04
|
* ffmpeg: Warn if thousands of frames are duplicated.Carl Eugen Hoyos2016-11-04
| | | | Fixes ticket #5193.
* avfilter/af_firequalizer: add fft2 optionMuhammad Faiz2016-11-04
| | | | | | | | | | 2-channels convolution using complex fft improves speed significantly not sure if it should be enabled by default so disable it by default Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* libx265: Add option to force IDR framesDerek Buitenhuis2016-11-04
| | | | | | | This is in the same the same vein as c981b1145a857c8f962c93b8eecb1c613b20ffe9. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* ffmpeg: Fix bsf corrupting merged side dataMichael Niedermayer2016-11-04
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/ac3dec: Check expaccMichael Niedermayer2016-11-03
| | | | | | | | | | this is somewhat a magic number, which can be understood from reading section "7.1.2 Exponent Strategy" of the ac3 specification, in short: Three exponents each represented as number 0-4 are grouped together and base-5 encoded, so the maximal correct value is 25*4 + 5*4 + 4 = 124. Reviewed-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavd/xcbgrab: do not try to create refcounted packets.Nicolas George2016-11-03
| | | | | | | | | | | | | | | | | | | | | | | The framework will allocate a buffer and copy the data to it, that takes time. But it avoids constently creating and destroyng the shared memory segment, and that saves more time. On my setup, from ~200 to ~300 FPS at full screen (1920×1200), from ~1400 to ~3300 at smaller size (640×480), similar to legacy x11grab and confirmed by others. Plus, shared memory segments are a scarce resource, allocating potentially many is a bad idea. Note: if the application were to drop all references to the buffer before the next call to av_read_frame(), then passing the shared memory segment as a refcounted buffer would be even more efficient, but it is hard to guarantee, and it does not happen with the ffmpeg command-line tool. Using a small number of preallocated buffers and resorting to a copy when the pool is exhausted would be a solution to get the better of both worlds.