summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/h263dec: Return the correct error code in explode modeMichael Niedermayer2016-12-151-1/+1
| | | | | Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avcodec/smvjpegdec: return the packet size instead of 0Michael Niedermayer2016-12-151-1/+3
| | | | | | | | Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avcodec/tdsc: return the packet size instead of 0Michael Niedermayer2016-12-151-1/+1
| | | | | | | | Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avcodec/screenpresso: return the packet size instead of 0Michael Niedermayer2016-12-151-1/+1
| | | | | | | | Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avcodec/rscc: return the packet size instead of 0Michael Niedermayer2016-12-151-0/+1
| | | | | | | | Most decoders return the amount of data used. This is more consistent Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avfilter/vsrc_testsrc: draw_bar: make sure width is not negativePaul B Mahol2016-12-151-2/+2
| | | | | Reported-by: Josh de Kock Signed-off-by: Paul B Mahol <[email protected]>
* avformat/mp3dec: fix msan warning when verifying mpa headerChris Cunningham2016-12-151-1/+2
| | | | | | | | MPEG Audio frame header must be 4 bytes. If we fail to read 4 bytes bail early to avoid Use-of-uninitialized-value msan error. Reference https://crbug.com/666874. Signed-off-by: Michael Niedermayer <[email protected]>
* tiff: fix overflows when calling av_reduceAndreas Cadhalpun2016-12-151-2/+11
| | | | | | | The arguments of av_reduce are signed, so the cast to uint64_t is misleading. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* mov: prevent overflow during bit rate calculationAndreas Cadhalpun2016-12-151-1/+14
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* cafdec: prevent overflow during bit rate calculationAndreas Cadhalpun2016-12-151-2/+7
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* 4xm: prevent overflow during bit rate calculationAndreas Cadhalpun2016-12-151-1/+7
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* doc/filters: fix channel names in sofalizer examplePaul B Mahol2016-12-141-2/+2
| | | | Signed-off-by: Paul B Mahol <[email protected]>
* avfilter/af_sofalizer: warn if user gives unknown channel namesPaul B Mahol2016-12-141-3/+5
| | | | Signed-off-by: Paul B Mahol <[email protected]>
* doc/filters: drawtext: add example of printing texts on same baselineAndrey Utkin2016-12-141-0/+8
| | | | | | | | | | Height of canvas produced by drawtext varies depending on symbols in text, so add example for printing separate texts aligned horizontally. Wording suggested by Lou Logan <[email protected]> Signed-off-by: Andrey Utkin <[email protected]> Signed-off-by: Lou Logan <[email protected]>
* Add missing #includes for standalone spherical-information-related headersDiego Biurrun2016-12-142-0/+6
| | | | | (cherry picked from commit f912fd767e55bbb5a1554bd99bacab007659609c) Signed-off-by: James Almer <[email protected]>
* Bump for psd demuxer and decoderMichael Niedermayer2016-12-142-2/+2
| | | | | Found-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* libavformat : add Photoshop PSD demuxer.Martin Vignali2016-12-143-0/+34
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* libavcodec : add decoder for Photoshop PSD image filesMartin Vignali2016-12-147-0/+448
| | | | | | | | Decode the Image Data Section (which contains merged pictures). Support RGB/A and Grayscale/A in 8bits and 16 bits per channel. Support uncompress and rle decompression in Image Data Section. Signed-off-by: Michael Niedermayer <[email protected]>
* avformat: fix overflows during bit rate calculationAndreas Cadhalpun2016-12-1410-11/+11
| | | | | | | | The bit_rate field has type int64_t since commit 7404f3bdb90e6a5dcb59bc0a091e2c5c038e557d. Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* swresample/resample: remove swri_resample functionMuhammad Faiz2016-12-141-44/+35
| | | | | | | | | integrate it inside multiple_resample allow some calculations to be performed outside loop Suggested-by: Michael Niedermayer <[email protected]> Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Muhammad Faiz <[email protected]>
* libvpxenc: Don't spam level errors for VP8 encodesAlex Converse2016-12-131-1/+2
| | | | | Fixes "Failed to set VP9E_GET_LEVEL codec control: Codec does not implement requested capability" log messages on VP8 encodes.
* swresample/resample: do not allow negative dst_size return valueMuhammad Faiz2016-12-141-3/+4
| | | | | | | This should fix Ticket6012 Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Muhammad Faiz <[email protected]>
* avformat/utils: Print verbose error message if stream count exceeds max_streamsMichael Niedermayer2016-12-131-1/+4
| | | | | Reviewed-by: Andreas Cadhalpun <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avformat/options_table: Set the default maximum number of streams to 1000Michael Niedermayer2016-12-131-1/+1
| | | | | | | | | Fixes CVE-2016-9561, Note the security relevance of this is disputed as running out of memory can happen with valid files Suggested-by: Andreas Cadhalpun <[email protected]> Reviewed-by: Andreas Cadhalpun <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avfilter/avfilter: fix filtering frames with unknown channel layouts for ↵Marton Balint2016-12-131-1/+1
| | | | | | | filters needing writable frames Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avcodec/mips: version 1 of wmv2dsp optimizations for loongson mmiZhou Xiaoyong2016-12-136-0/+351
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* avcodec/mips: version 1 of vp8dsp optimizations for loongson mmiZhou Xiaoyong2016-12-136-0/+3261
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* configure: add -fPIE instead of -pie to C flags for ThreadSanitizerWan-Teh Chang2016-12-131-1/+1
| | | | | | | | | | | | | | | | | | | | | | | -pie was added to C flags for ThreadSanitizer in commit 19f251a2882a8d0779b432e63bf282e4d9c443bb. Under clang 3.8.0, the -pie flag causes a compiler warning and a linker error when running configure --toolchain=clang-tsan. Here is an excerpt from config.log: clang ... -fsanitize=thread -pie -std=c11 -fomit-frame-pointer -pthread -c -o /tmp/ffconf.hL61stP9.o /tmp/ffconf.YO6ZaSFG.c clang: warning: argument unused during compilation: '-pie' clang -fsanitize=thread -pie -Wl,--as-needed -Wl,-z,noexecstack -o /tmp/ffconf.W5c2e41l /tmp/ffconf.hL61stP9.o -lbz2 -pthread /usr/bin/ld: /tmp/ffconf.hL61stP9.o: relocation R_X86_64_PC32 against undefined symbol `atan2f@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Bad value clang: error: linker command failed with exit code 1 (use -v to see invocation) To be conservative, I changed -pie to -fPIE. But the documentation seems to imply just -fsanitize=thread is enough: http://clang.llvm.org/docs/ThreadSanitizer.html https://github.com/google/sanitizers/wiki/ThreadSanitizerCppManual Signed-off-by: Wan-Teh Chang <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avutil: fix data race in av_get_cpu_flags()Wan-Teh Chang2016-12-132-7/+7
| | | | | | | | | | | | | | | | | | | | Make the one-time initialization in av_get_cpu_flags() thread-safe. The static variable |cpu_flags| in libavutil/cpu.c is read and written using normal load and store operations. These are considered as data races. The fix is to use atomic load and store operations. The fix can be verified by running the libavutil/tests/cpu_init.c test program under ThreadSanitizer: ./configure --toolchain=clang-tsan make libavutil/tests/cpu_init libavutil/tests/cpu_init There should be no warnings from ThreadSanitizer. Co-author: Dmitry Vyukov of Google, who suggested the data race fix. Signed-off-by: Wan-Teh Chang <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* avutil/tests/imgutils: Remove unused variableMichael Niedermayer2016-12-131-1/+0
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* opt: reject denominator zero as out of rangeAndreas Cadhalpun2016-12-131-1/+1
| | | | | Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* fate: Add h264 test for frame num gapsDerek Buitenhuis2016-12-122-0/+37
| | | | Signed-off-by: Derek Buitenhuis <[email protected]>
* avcodec/cuvid: fix compilation with msvc11Timo Rothenpieler2016-12-121-1/+2
|
* lavf/mov: Accept multiple fourcc for AVID 1:1.Carl Eugen Hoyos2016-12-121-0/+2
| | | | Fixes ticket #5982.
* lavf/isom: Support EVRC in pvAuthor files.Carl Eugen Hoyos2016-12-121-0/+1
| | | | Fixes ticket #6014.
* avformat/matroskadec: remove the strict unofficial check for Colour elementsJames Almer2016-12-101-6/+3
| | | | Signed-off-by: James Almer <[email protected]>
* avformat/matroskadec: allocate Colour related fields only if the file ↵James Almer2016-12-101-24/+30
| | | | | | | | | | contains the relevant master The demuxer doesn't fill the defaults if the master isn't present. This results in codecpar->color_space being set with a value of zero (RGB) on such files. Signed-off-by: James Almer <[email protected]>
* ffplay: fix sws_scale possible out of bounds array accessMarton Balint2016-12-101-8/+8
| | | | | | | | | | | As I used simple RGBA formats for subtitles and for the video texture if avfilter is disabled I kind of assumed that sws_scale won't access data pointers and strides above index 0, but apparently that is not the case. Fixes Coverity CID 1396737, 1396738, 1396739, 1396740. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Marton Balint <[email protected]>
* avutil/tests: run the cpu_init.c test conditionally on HAVE_THREADSWan-Teh Chang2016-12-103-9/+2
| | | | | | | Suggested by Diego Biurrun and James Almer. Signed-off-by: Wan-Teh Chang <[email protected]> Signed-off-by: James Almer <[email protected]>
* avutil/cpu_init: remove unnecessary arguments to the main() functionWan-Teh Chang2016-12-101-1/+1
| | | | Signed-off-by: James Almer <[email protected]>
* avcodec: Add max_pixels optionsMichael Niedermayer2016-12-106-6/+23
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* avutil: Add av_image_check_size2()Michael Niedermayer2016-12-104-6/+42
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* fate: add av_image_check_size() testMichael Niedermayer2016-12-104-0/+97
| | | | Signed-off-by: Michael Niedermayer <[email protected]>
* configure: fail if autodetect-libraries are requested but not foundAndreas Cadhalpun2016-12-102-22/+57
| | | | Signed-off-by: Andreas Cadhalpun <[email protected]>
* configure: enable autodetected libraries after option parsingAndreas Cadhalpun2016-12-101-9/+9
| | | | | | | | And only enable them, if they haven't been disabled. This is needed for the following patch. Signed-off-by: Andreas Cadhalpun <[email protected]>
* configure: enable sdl if sdl2 is enabledAndreas Cadhalpun2016-12-101-1/+1
| | | | | | sdl is supposed to be an alias, so it should have the same value. Signed-off-by: Andreas Cadhalpun <[email protected]>
* libavcodec/tests: Add avpacket test to .gitignoreDerek Buitenhuis2016-12-101-0/+1
| | | | Signed-off-by: Derek Buitenhuis <[email protected]>
* configure: Require bit_depth field for VAAPI VP9 decode hwaccelMark Thompson2016-12-101-2/+2
| | | | | | | libva versions from 1.6.0 to 1.6.2 do not include it, and therefore cannot work with VP9 profile >= 2. Fixes ticket #6003.
* opus_parser: make ParseContext the first element in OpusParseContextAndreas Cadhalpun2016-12-101-1/+1
| | | | | | | | ff_parse_close expects priv_data to be the ParseContext directly and thus doesn't work if it isn't at the beginning of OpusParseContext. Reviewed-by: Hendrik Leppkes <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>
* opus_parser: fix leaking channel_maps on errorAndreas Cadhalpun2016-12-102-1/+1
| | | | | | | | Make ff_opus_parse_extradata free allocated memory on error instead of expecting callers to free it in that case. Reviewed-by: Michael Niedermayer <[email protected]> Signed-off-by: Andreas Cadhalpun <[email protected]>