aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avutil: merge slice threading implementation from avcodec and avfilterMuhammad Faiz2017-07-194-1/+313
| | | | | | | | | | | | Rework it to improve performance. Now mutex is not shared by workers, instead each worker has its own mutex and condition variable. This reduces lock contention between workers. Also use atomic variable for counter. The interface also allows execute to run special function on main thread, requested by Ronald. Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* libavformat/fifo: Fix initialization of underlying AVFormatContextJan Sebechlebsky2017-07-191-3/+4
| | | | | | | | | | | | | Muxers may want to directly access filename in stored in AVFormatContext. For example in case of RTSP, the filename (url) is used by the muxer to extract parameters of the connection. These muxers will fail when used with fifo pseudo-muxer. This commit fixes this issue by passing filename from AVFormatContext of fifo pseudo-muxer to all AVFormatContext(s) of underlying muxers during initialization. Signed-off-by: Jan Sebechlebsky <sebechlebskyjan@gmail.com>
* avcodec/dca: avoid using bitstream reader in a non-standard wayfoo862017-07-184-8/+11
| | | | | | Use proper get_bits.h functions instead of directly accessing index. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca_core: probe extension headers directlyfoo862017-07-181-15/+16
| | | | | | | Avoid using bitstream reader in a non-standard way by directly accessing index. Use bit shifting/masking operations instead. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca_parser: avoid use of magic valuesfoo862017-07-181-3/+4
| | | | | | | Duration computation can be simplified because number of PCM blocks is only allowed to be a multiple of 8. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca_parser: export profile informationfoo862017-07-181-5/+39
| | | | | | | Permits applications to access DTS profile information without having to decode a frame. Signed-off-by: James Almer <jamrial@gmail.com>
* avformat/dtsdec: switch to common frame header parsing functionfoo862017-07-181-30/+9
| | | | | | | | | | | This makes probing for regular DTS more strict because more header fields are checked and values not supported by decoder are now rejected. Also fixes an issue original code had with 14-bit streams: 96 bits of header were expected, however only 84 bits were converted, which was not enough to parse LFE flag. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca_parser: switch to common frame header parsing functionfoo862017-07-181-15/+11
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca_core: switch to common frame header parsing functionfoo862017-07-181-98/+51
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add avpriv_dca_parse_core_frame_header()foo862017-07-183-2/+111
| | | | | | | | There are 3 different places where DCA core frame header is parsed: decoder, parser and demuxer. Each one uses ad-hoc code. Add common core frame header parsing function that will be used in all places. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca: move bits per sample array to dca.cfoo862017-07-184-6/+6
| | | | | | | It will be used by the parser. This change avoids unwanted parser dependency on dcadata. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca: move some enumeration typedefs into headersfoo862017-07-184-55/+55
| | | | | | | These values will be used by the parser. Prefix them with DCA_ appropriately. Signed-off-by: James Almer <jamrial@gmail.com>
* lavc/codec_desc: Mark some uncompressed codecs as lossless.Carl Eugen Hoyos2017-07-191-9/+9
| | | | Fixes ticket #6526.
* doc: Fix names of VAAPI encodersMark Thompson2017-07-181-6/+6
| | | | They were all reversed (oops).
* pixdesc: Add a test for av_find_best_pix_fmt_of_2()Mark Thompson2017-07-184-0/+131
|
* pixdesc: Improve scoring for opaque/unknown pixel formatsMark Thompson2017-07-181-4/+12
| | | | | | | | | | | | | Hardware pixel formats do not tell you anything about their actual contents, but should still score higher than formats with completely unknown properties, which in turn should score higher than invalid formats. Do not return an AVERROR code as a score. Fixes a hang in libavfilter where format negotiation gets stuck in a loop because AV_PIX_FMT_NONE scores more highly than all other possibilities.
* lavc/vaapi_encode_h265: Remove duplicate slice_segment_address.Jun Zhao2017-07-181-2/+1
| | | | | | | | the VAEncSliceParameterBufferHEVC in libva have support this field, so remove the duplicate field in VAAPIEncodeH265MiscSliceParams. Signed-off-by: Jun Zhao <jun.zhao@intel.com> Signed-off-by: Mark Thompson <sw@jkqxz.net>
* avcodec/htmlsubtitles: Be a bit more picky on syntaxMichael Niedermayer2017-07-181-2/+2
| | | | | | | | | | | This reduces the number of strstr() calls per byte This diasalows empty tags like '< >' as well as '<' in tags like '<ab<cd<<ef>' Fixes timeout Fixes: 1817/clusterfuzz-testcase-minimized-5104230530547712 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_template (fixed point): Check gain in decode_cce() to avoid ↵Michael Niedermayer2017-07-181-0/+8
| | | | | | | | | | undefined shifts later Fixes: runtime error: shift exponent 47 is too large for 32-bit type 'int' Fixes: 2581/clusterfuzz-testcase-minimized-4681474395602944 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* opus: simplify coarse energy beta coefficientsRostislav Pehlivanov2017-07-183-19/+15
| | | | | | Just put the subtraction in the table. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avdevice/decklink_dec: add support for receiving op47 teletextMarton Balint2017-07-182-18/+129
| | | | | | | | | v2: - use uint16_t instead of int to store 10-bit ancillary data - fix ancillary line numbers for 1080p - some comments and clarifications as requested by Aaron Levinson Signed-off-by: Marton Balint <cus@passwd.hu>
* avdevice/decklink_dec: add support for decoding teletext from 10bit ↵Marton Balint2017-07-182-18/+47
| | | | | | | | | | | | | ancillary data This also add supports for 4K DeckLink cards because they always output the ancillary data in 10-bit. v2: - only try teletext decoding for 576i PAL mode - some comments as requested by Aaron Levinson Signed-off-by: Marton Balint <cus@passwd.hu>
* lavc/jpeg2000dec: Read the sample aspect ratio from the jp2 resolution box.Carl Eugen Hoyos2017-07-181-0/+33
|
* ffprobe: reindent after previous commitClément Bœsch2017-07-181-9/+8
|
* ffprobe: add -(no)find_stream_info expert optionClément Bœsch2017-07-181-5/+10
|
* ffplay: reindent after previous commitClément Bœsch2017-07-181-11/+10
|
* ffplay: add -(no)find_stream_info expert optionClément Bœsch2017-07-181-4/+8
|
* ffmpeg: reindent after previous commitClément Bœsch2017-07-181-13/+12
|
* ffmpeg: add -(no)find_stream_info expert optionClément Bœsch2017-07-181-9/+13
|
* opusenc: remove unused variableRostislav Pehlivanov2017-07-181-1/+1
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* configure: Fix libvmaf nameMatt Oliver2017-07-161-1/+1
| | | | | | | Fixes: fatal error: libvmaf.h: No such file or directory. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* webmdashenc: Fix memory leakDerek Buitenhuis2017-07-161-8/+30
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avcodec/apedec: Fix integer overflowMichael Niedermayer2017-07-161-3/+5
| | | | | | | | Fixes: out of array access Fixes: PoC.ape and others Found-by: Bingchang, Liu@VARAS of IIE Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter: add LIBVMAF filterAshish Singh2017-07-166-0/+411
| | | | | | | | This one changes the previous vmaf patch to libvmaf to keep it separate from the native implementation of vmaf inside ffmpeg later. Signed-off-by: Ashish Singh <ashk43712@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avcodec/ffv1dec_template: Fix signed integer overflowMichael Niedermayer2017-07-161-1/+1
| | | | | | | | Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 2634/clusterfuzz-testcase-minimized-4540890636877824 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_template: Fix undefined integer overflow in apply_tns()Michael Niedermayer2017-07-162-2/+5
| | | | | | | | Fixes: runtime error: signed integer overflow: -2147483648 - 1202286525 cannot be represented in type 'int' Fixes: 2071/clusterfuzz-testcase-minimized-6036414271586304 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* fate: add sub-srt-badsyntax testMichael Niedermayer2017-07-152-0/+25
| | | | | | Based-on: srt sample by ubitux Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* hdsenc: Remove dead storeDerek Buitenhuis2017-07-141-1/+0
| | | | | | | This is apparently not supposed to error out anyway. Reviewed-by: Steven Liu <lq@onvideo.cn> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* opusenc: use float_dsp for non-transient windowingRostislav Pehlivanov2017-07-141-12/+12
| | | | | | Also fixes transient windowing Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avutil/threadmessage: fix error return in case of av_fifo_alloc failureAleksandr Slobodeniuk2017-07-141-1/+1
| | | | | Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: Add prefetch for mipsKaustubh Raste2017-07-144-0/+55
| | | | | | Signed-off-by: Kaustubh Raste <kaustubh.raste@imgtec.com> Reviewed-by: Manojkumar Bhosale <Manojkumar.Bhosale@imgtec.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* x86/vf_limiter: make limiter functions work on x86_32James Almer2017-07-132-18/+14
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: add hybrid_analysis_ileave and hybrid_synthesis_deint tests to ↵James Almer2017-07-131-0/+82
| | | | | | aacpsdsp Signed-off-by: James Almer <jamrial@gmail.com>
* checkasm: add a g722dsp testJames Almer2017-07-135-0/+69
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* opusenc: use float_dsp for transient mdctsRostislav Pehlivanov2017-07-134-11/+14
| | | | | | vector_fmul_reverse requires padding the window at the front Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* movenc: Add 'keywords' metadataKieran O'Leary2017-07-131-0/+2
| | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* configure: use pkg-config for libgme, if availableRicardo Constantino2017-07-131-1/+2
| | | | | | The pkg-config file is relatively new (2013), so some distros might not have it yet. And the -lstdc++ being required for the static lib is only present since the last release in December 2016.
* avcodec/ivi: Use av_image_check_size2()Michael Niedermayer2017-07-124-7/+7
| | | | | | | | Fixes OOM Fixes: 1514/clusterfuzz-testcase-minimized-6437666243477504 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/magicyuv: Check that vlc len is not too largeMichael Niedermayer2017-07-121-3/+3
| | | | | | | | Fixes: runtime error: shift exponent -95 is negative Fixes: 2568/clusterfuzz-testcase-minimized-4926115716005888 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mjpegdec: Clip DC also on the negative side.Michael Niedermayer2017-07-121-1/+1
| | | | | | | | Fixes: runtime error: signed integer overflow: -16711425 + -2130772346 cannot be represented in type 'int' Fixes: 2533/clusterfuzz-testcase-minimized-5372857678823424 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>