summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* avfilter/af_stereotools: add forgotten breakPaul B Mahol2017-06-21
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* mdec: stop preferring the simple IDCT.Ronald S. Bultje2017-06-21
| | | | | | | | | | | | | | This was added in e3e3c82555e2382125195c1ba9f34b5a43299abc, probably as a workaround for the fact that the quant table was not permutated and the IDCT coefficients are, meaning that you'd only get correct reconstruction if the IDCT permutation was an identity matrix, which happens to be the case when you use the simple IDCT. The quant table permutation bug was fixed in 42dd1434bf6a7230e4175c08fcfabc3ba51a0463, meaning this workaround is no longer necessary. In practical terms, before 42dd1434bf6a7230e4175c08fcfabc3ba51a0463, the PSNR between decodes of the fate-mdec using simple (C) or simplemmx IDCTs was 35. After 42dd1434bf6a7230e4175c08fcfabc3ba51a0463, it's 90.
* mdec: use correctly permutated quant matrix for dequantization.Ronald S. Bultje2017-06-21
|
* aarch64: vp9 16bpp: Fix assembling with Xcode 6.2 and olderMemphiz2017-06-21
| | | | | | | | | Properly use the b.eq form instead of the nonstandard form (which both gas and newer clang accept though), and expand the register lists that used a range (which the Xcode 6.2 clang, based on clang 3.5 svn, didn't support). Signed-off-by: Martin Storsjö <martin@martin.st>
* aarch64: vp9: Fix assembling with Xcode 6.2 and olderMemphiz2017-06-21
| | | | | | | | | | | | Properly use the b.eq/b.ge forms instead of the nonstandard forms (which both gas and newer clang accept though), and expand the register list that used a range (which the Xcode 6.2 clang, based on clang 3.5 svn, didn't support). This is cherrypicked from libav commit a970f9de865c84ed5360dd0398baee7d48d04620. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/mpegvideo: Use intra_scantable in dct_unquantize_h263_intra_c()Michael Niedermayer2017-06-21
| | | | | Reviewed-by: James Darnley <jdarnley@obe.tv> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/hevc_filter: Fix invalid shiftMichael Niedermayer2017-06-21
| | | | | | | | | Fixes: runtime error: left shift of negative value -1 Fixes: 2299/clusterfuzz-testcase-minimized-4843509351710720 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/hevcdec: Check beta and tc offset in hls_slice_header()Michael Niedermayer2017-06-21
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/mpeg4videodec: Fix overflow in virtual_ref computationMichael Niedermayer2017-06-21
| | | | | | | | Fixes: runtime error: signed integer overflow: 262144 * -16120 cannot be represented in type 'int' Fixes: 2292/clusterfuzz-testcase-minimized-6156080415506432 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/lpc: signed integer overflow in compute_lpc_coefs() (aacdec_fixed)Michael Niedermayer2017-06-21
| | | | | | | | Fixes: runtime error: signed integer overflow: -1575818955 + -915383657 cannot be represented in type 'int' Fixes: 2224/clusterfuzz-testcase-minimized-6208559949807616 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* configure: Move up the avbuild directory creationLuca Barbato2017-06-20
| | | | | | | | | The early check for inconsistent in-source vs out-of-source build cannot generate a config.log otherwise. (Cherry-picked from libav commit 0ee78020cd41d81eec651acd7fc65906207796f3) Signed-off-by: Luca Barbato <lu_zero@gentoo.org> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/decode: Update decode_simple_internal() to get the side data correctly.John Rummell2017-06-20
| | | | | | | | Use avci->last_pkt_props to get the side data. Using |pkt| doesn't work when FF_API_MERGE_SD is set, as the compressed side data is expanded into |tmp|, leaving the original |pkt| unchanged. Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/x86: allow future 8-bit simple idct to use slightly different ↵James Darnley2017-06-20
| | | | coefficients
* avcodec/mdec: override IDCT choice before initing DSP structsJames Darnley2017-06-20
|
* avcodec/x86: modify simple_idct10 macros to add an action paramterJames Darnley2017-06-20
|
* avcodec/x86: cleanup simple_idct10James Darnley2017-06-20
| | | | | | Use named arguments for the functions so we can remove a define. The stride/linesize argument is now ptrdiff_t type so we no longer need to sign extend the register.
* avcodec/x86/mpegenc: support transpose permuation typeJames Darnley2017-06-20
|
* avcodec/x86/mpegenc: check IDCT permutation type is a valid valueJames Darnley2017-06-20
|
* build: Add missing idctdsp dependency for clearvideoDiego Biurrun2017-06-20
| | | | (cherry picked from commit 2f792cb6703b5b12f2e873bee13f33da8aa9940a)
* ffmpeg: remove misleading and incorrect warning messageswm42017-06-20
| | | | | | | | | | | | | | | | | | | | | | It is wrong/incorrect in two aspects: 1. The pixel format is not enough to guarantee that the resulting file will be any more compatible with media players. 2. Media players not supporting higher profiles are not necessarily outdated (in fact this is simply an arrogant statement that libavcodec can handle these particular features). You could add that there are plenty of other ways to produce widely incompatible files with ffmpeg, and these don't show any warnings. What we really want to do here is defaulting to codec profiles that have wide compatibility, such as main/high for h264. Also, if an encoder does not accept certain pixfmts, we should automatically convert them to a pixfmt the encoder can accept. But the existing message certainly is not appropriate. It also works for 2 specific encoders only. Extending it for other cases would result in a lot of special cases, so this is not the right place.
* avcodec/x86/mpegvideo: Use intra scantable in dct_unquantize_h263_intra_mmx()Michael Niedermayer2017-06-20
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/h264: Fix mix of lossless and lossy MBs decodingAnton Mitrofanov2017-06-19
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avcodec/h264_mb: Fix 8x8dct in lossless for new versions of x264Anton Mitrofanov2017-06-19
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* avcodec/h264_cabac: Fix CABAC+8x8dct in 4:4:4Anton Mitrofanov2017-06-19
| | | | | | | Use the correct ctxIdxInc calculation for coded_block_flag. Keep old behavior for old versions of x264 for backward compatibility. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libavfilter/scale: Populate ow/oh when using 0 as w/hKevin Mark2017-06-19
| | | | | | | | | | | | | | | | | | | | | | The input width and height is known at parse time so there's no reason ow/oh should not be usable when using 0 as the width or height expression. Previously in "scale=0:ow" ow would be set to "0" which works, conveniently, as "scale=0:0" is perfectly valid input but this breaks down when you do something like "scale=0:ow/4" which one could reasonably expect to work as well, but does not as ow is 0 not the real value. This change handles the 0 case for w/h immediately so the ow/oh variables work as expected. Consequently, the rest of the code does not need to handle 0 input. w/h will always be > 0 or < 0. The second explicit (int) cast ensures that ow/oh appear as integers as a user might expect when dealing with pixel dimensions. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* doc/filters: Correct scale doc regarding w/h <= 0Kevin Mark2017-06-19
| | | | | | | | | | | | | | | | According to libavfilter/scale.c, if the width and height are both less than or equal to 0 then the input size is used for both dimensions. It does not need to be -1. -1:-1 is the same as 0:0 which is the same as -10:-42, etc. if (w < 0 && h < 0) eval_w = eval_h = 0; The documentation for the zscale filter has also been updated since the behavior is identical. Signed-off-by: Kevin Mark <kmark937@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* doc/filters: fix typoPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_stereotools: add 2 more modesPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_superequalizer: stop leaking s->out framePaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_superequalizer: improve descriptionPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter/af_superequalizer: fix out of array accessPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/wavpack: Fix undefined integer negationMichael Niedermayer2017-06-19
| | | | | | | | Fixes: runtime error: negation of -2147483648 cannot be represented in type 'int'; cast to an unsigned type to negate this value to itself Fixes: 2291/clusterfuzz-testcase-minimized-5538453481586688 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_fixed: Check s for being too smallMichael Niedermayer2017-06-19
| | | | | | | | Fixes: runtime error: shift exponent -8 is negative Fixes: 2286/clusterfuzz-testcase-minimized-5711764169687040 Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: Rename ff_mpv_decode_mb() to ff_mpv_reconstruct_mbMichael Niedermayer2017-06-19
| | | | | | The new name more accuratly describes what the function does Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avfilter: add roberts cross operatorPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avfilter: add superequalizer filterPaul B Mahol2017-06-19
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavfi: print the error message when threading init fails.Nicolas George2017-06-19
|
* avformat/hlsenc: donnot show duplicate segment warning at byterange modeSteven Liu2017-06-19
| | | | | | | | When the hlsenc at BYTERANGE mode, it should not show the warning message: "Duplicated segment filename detected:" Reported-by: Marco <marco@worldcast.com> Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
* x86/aacpsdsp: add ff_ps_hybrid_analysis_ileave_sseJames Almer2017-06-18
| | | | About 2x faster than the c version.
* x86/aacpsdsp: add ff_ps_hybrid_synthesis_deint_{sse,sse4}James Almer2017-06-18
| | | | About 2x faster than the c version.
* avformat/oggenc: add ogg_init() and ogg_free()James Almer2017-06-18
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* fate: use do_md5sum instead of the md5 protocol for most md5 fate testsMarton Balint2017-06-18
| | | | | | | | | | | | | The md5 protocol has no seek support, but some tests use seeks. This changes the fate tests to actually create the output files and calculate the md5 on the written files, which also makes the tests independent of the size of the output buffers and output buffering in general. A new md5pipe fate test method is also introduced to keep the old functionality for tests where using a non-seekable output was intentional, and matroska md5 tests are changed to use that. Signed-off-by: Marton Balint <cus@passwd.hu>
* avfilter/af_amix: fix possible hangPaul B Mahol2017-06-18
| | | | | | Fixes #6424. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avconv_hw: Free device on initialisation failureMark Thompson2017-06-18
| | | | | | Fixes CID 1412852. (cherry picked from commit c2b0bea40f1fd4399ff6184a2df4f397c0f4b3ab)
* vf_hwmap: Properly free a locally derived deviceMark Thompson2017-06-18
| | | | | | Fixes CID 1412853. (cherry picked from commit a670eea56087d0ecd4fbeccf3a9beb9110b7031f)
* vf_hwmap: Add missing error codeMark Thompson2017-06-18
| | | | | | Fixes CID 1412854. (cherry picked from commit 5635c80bf59d90e63ede473e2c014647850a8446)
* libavfilter/af_biquads: add shorter option for width_typePaul B Mahol2017-06-18
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avformat/rmenc: do not access AVIO write buffer directlyMarton Balint2017-06-18
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* Cleanly exit at the end of an Interplay MVEHein-Pieter van Braam2017-06-18
| | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Hein-Pieter van Braam <hp@tmm.cx> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/htmlsubtitles: Factor open brace handling into its own functionMichael Niedermayer2017-06-18
| | | | | Suggested-by: wm4 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>