summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* pixdesc: Explicitly handle invalid arguments to av_find_best_pix_fmt_of_2()Mark Thompson2017-07-22
|
* ffprobe: Print color properties from show_framesVittorio Giovara2017-07-21
| | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* hevc: Make sure to update the current frame transfer characteristicVittorio Giovara2017-07-21
| | | | | | | Otherwise the first decoded frame will still be tagged with the original transfer instead of the alternative one. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* zscale: Factor out graph buildingVittorio Giovara2017-07-21
|
* zscale: Factor out format initializationVittorio Giovara2017-07-21
|
* avcodec/diracdec: Check dimensions which are closer to what is allocated in ↵Michael Niedermayer2017-07-21
| | | | | | | | | | alloc_sequence_buffers() Fixes OOM Fixes: 2674/clusterfuzz-testcase-minimized-4999700518273024 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* doc: Add initial documentation explaining undefined behavior and SUINTMichael Niedermayer2017-07-21
| | | | | | Requested-by: Kieran Kunhya <kierank@obe.tv> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libavutil/mips: Updated msa generic macrosKaustubh Raste2017-07-21
| | | | | | | | | | | Reduced msa load-store code. Removed inline asm of GP load-store for 64 bit. Updated variable names in GP load-store macros for naming consistency. Corrected macro descriptions. 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>
* MAINTAINERS: add myselffoo862017-07-21
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca: remove GetBitContext usage from ↵James Almer2017-07-21
| | | | | | | | | avpriv_dca_parse_core_frame_header() This prevents potential ABI issues with GetBitContext. Reviewed-by: foo86 <foobaz86@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/h264: Declare the local variable decode_chroma as const.Wan-Teh Chang2017-07-21
| | | | | | | | | ff_h264_decode_mb_cabac() and ff_h264_decode_mb_cavlc() are very long functions. Declaring decode_chroma as const makes it clear the variable doesn't change after initialization. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/hevcdec: hevc_await_progress: declare |y| only if used.Wan-Teh Chang2017-07-21
| | | | | | | | hevc_await_progress() uses the variable |y| only inside the "if" block. So |y| only needs to be declared and initialized in that block. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/x86/cavsdsp: Delete #include "libavcodec/x86/idctdsp.h".Wan-Teh Chang2017-07-21
| | | | | | | | | | | This file already has #include "idctdsp.h", which is resolved to the idctdsp.h header in the directory where this file resides by compilers. Two other files in this directory, libavcodec/x86/idctdsp_init.c and libavcodec/x86/xvididct_init.c, also rely on #include "idctdsp.h" working this way. Signed-off-by: Wan-Teh Chang <wtc@google.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* opus_rc: fix CDF encoding of zeroesRostislav Pehlivanov2017-07-20
| | | | | | 0th CDF value is where probabilities are. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* fate: add libavdevice/reverse.c to fate-sourceJames Almer2017-07-20
|
* avdevice: make ff_reverse available on shared buildsJames Almer2017-07-20
| | | | Should fix compilation failures introduced by 9b937958907daaddade139c36ce33c6eac269631.
* avfilter/af_astats: measure dynamic rangePaul B Mahol2017-07-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/dolby_e: use av_clip_uintp2()James Almer2017-07-19
| | | | Fixes fate-source.
* avfilter/af_astats: do not overwrite already set values when doing resetPaul B Mahol2017-07-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: Add blue and violet noise generation filtersGeorge Boyle2017-07-19
| | | | | | | | | For the blue and violet noise, I took the pink and brown noise respectively and subtracted the offsets instead of adding them. When I eyeball the frequency spectrum of the resulting outputs it looks correct to me, i.e. the blue graph appears to be a mirror image of the pink, and the same can be said of the violet and the brown. I did not do anything else to confirm the correctness.
* avformat: add SMPTE 337M demuxerfoo862017-07-19
|
* avcodec: add Dolby E decoderfoo862017-07-19
|
* avfilter/pthread: use slice threading from avutilMuhammad Faiz2017-07-19
| | | | | | | | | | | | | | | | | Benchmark (with 2 cpus): ./ffmpeg -f rawvideo -s 1280x720 -t 1000 -i /dev/zero \ -filter_threads $threads -vf transpose=clock -f null null threads=2: old: 31.129s 31.446s 31.574s new: 29.602s 29.636s 29.656s threads=3 (nb_threads = nb_cpus + 1 is bad choice at this situation): old: 40.132s 40.279s 40.279s new: 39.308s 39.570s 39.693s threads=4: old: 31.306s 31.366s 31.654s new: 30.231s 30.360s 30.451s Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avcodec/pthread_slice: use slice threading from avutilMuhammad Faiz2017-07-19
| | | | | | | | | | | | | | | | | | | | | | | | Also remove pthread_cond_broadcast(progress_cond) on uninit. Broadcasting it is not required because workers are always parked when they are not in thread_execute. So it is imposible that a worker is waiting on progress_cond when uninitialized. Benchmark: ./ffmpeg -threads $threads -thread_type slice -i 10slices.mp4 -f null null threads=2: old: 70.212s 70.525s 70.877s new: 65.219s 65.377s 65.484s threads=3: old: 65.086s 66.306s 66.409s new: 63.229s 65.026s 65.116s threads=4: old: 60.993s 61.482s 62.123s new: 59.224s 59.441s 59.667s threads=5: old: 57.576s 57.860s 58.832s new: 53.032s 53.948s 54.086s Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
* avutil: merge slice threading implementation from avcodec and avfilterMuhammad Faiz2017-07-19
| | | | | | | | | | | | 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-19
| | | | | | | | | | | | | 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-18
| | | | | | 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-18
| | | | | | | 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-18
| | | | | | | 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-18
| | | | | | | 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-18
| | | | | | | | | | | 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-18
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/dca_core: switch to common frame header parsing functionfoo862017-07-18
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec: add avpriv_dca_parse_core_frame_header()foo862017-07-18
| | | | | | | | 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-18
| | | | | | | 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-18
| | | | | | | 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-19
| | | | Fixes ticket #6526.
* doc: Fix names of VAAPI encodersMark Thompson2017-07-18
| | | | They were all reversed (oops).
* pixdesc: Add a test for av_find_best_pix_fmt_of_2()Mark Thompson2017-07-18
|
* pixdesc: Improve scoring for opaque/unknown pixel formatsMark Thompson2017-07-18
| | | | | | | | | | | | | 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-18
| | | | | | | | 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-18
| | | | | | | | | | | 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-18
| | | | | | | | | | 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-18
| | | | | | 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-18
| | | | | | | | | 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-18
| | | | | | | | | | | | | 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-18
|
* ffprobe: reindent after previous commitClément Bœsch2017-07-18
|
* ffprobe: add -(no)find_stream_info expert optionClément Bœsch2017-07-18
|
* ffplay: reindent after previous commitClément Bœsch2017-07-18
|