summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* | | Fix buffer_size argument to init_put_bits() in multiple encoders.Dyami Caliri2015-02-26
| | | | | | | | | | | | | | | | | | | | | Several encoders were multiplying the buffer size by 8, in order to get a bit size. However, the buffer_size argument is for the byte size of the buffer. We had experienced crashes encoding prores (Anatoliy) at size 4096x4096.
* | | avformat/mp3dec: Check for avcodec_alloc_context3() failureMichael Niedermayer2015-02-26
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avformat/mp3dec: properly allocate dummy AVCodecContextMichael Niedermayer2015-02-26
| | | | | | | | | | | | | | | | | | | | | Fixes (harmless) use of uninitialized variable Found-by: jamrial Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | Merge commit '82b6e451161f19ab90bfb9565b710021caf5dcbd'Michael Niedermayer2015-02-26
|\ \ \ | | |/ | |/| | | | | | | | | | | | | | | | | | | | | | * commit '82b6e451161f19ab90bfb9565b710021caf5dcbd': configure: Move the cross_prefix setting after the toolchain one Conflicts: configure Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | configure: Move the cross_prefix setting after the toolchain oneLuca Barbato2015-02-26
| | | | | | | | | | | | | | | | | | Makes passing to configure --toolchain=gcc-asan --cross-prefix=armv7a-hardfloat-linux-gnueabi- work as intended.
* | | colormatrix: Accept bt601 aliases as inputVittorio Giovara2015-02-26
| |/ |/| | | | | | | | | | | As far as matrix coefficients are concerned, BT470BG and SMPTE170M match BT601. This is similar to the check performed in vf_scale. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | mips/acelp_filters: fix incorrect register constraintJames Cowgill2015-02-26
| | | | | | | | | | | | | | | | | | | | Change register constraint on the v variable from = to +. This was causing GCC to think that the v variable was never read and therefore not initialize it. This fixes about 20 fate failures on mips64el. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mips/aacdec: refactor out duplicated assembly codeJames Cowgill2015-02-26
| | | | | | | | | | | | | | | | The float_copy and fmul_and_reverse functions are refactored out from the multiple copies in this file. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mips/sbrdsp: remove sbr_neg_odd_64_mipsJames Cowgill2015-02-26
| | | | | | | | | | | | | | | | The optimized C version of this code actually runs faster than this version, so remove it. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mips/fft: remove some useless assemblyJames Cowgill2015-02-26
| | | | | | | | | | | | | | | | Remove some assembly that the compiler can easily handle optimally on its own. GCC produces almost identical assembly. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mips/aacpsdsp: fix definition of ps_decorrelate_mipsJames Cowgill2015-02-26
| | | | | | | | | | | | | | | | Q_fract should have be declared as 'const float*'. Also fix the constness of some local variables affected by this. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mips/mathops: remove 64-bit codeJames Cowgill2015-02-26
| | | | | | | | | | | | | | | | | | GCC is perfectly happy generating optimized multiplication code on its own for 64-bit arches. GCC refuses to optimize the loongson code when in 32-bit mode, so I've left that. Signed-off-by: James Cowgill <james410@cowgill.org.uk> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | tests: add paletteuse testClément Bœsch2015-02-26
| |
* | tests: add palettegen testClément Bœsch2015-02-26
| |
* | avfilter/paletteuse: use AV_QSORT()Clément Bœsch2015-02-26
| | | | | | | | See previous commit for a rationale.
* | avfilter/palettegen: use AV_QSORT()Clément Bœsch2015-02-26
| | | | | | | | | | | | | | | | | | | | | | | | This makes the sorting of the colors along an axis (r, g or b) predictible, and thus testable under FATE. The performance is not really an issue here since the function is called only once at the end and will need to sort very small number of entries, so an alternative would be to make the sorting functions (see DECLARE_CMP_FUNC()) fallback on another axis in case of equality. This approach was actually simpler. I don't know if there is any advantage in using a multidimensional sort, but it will affect the final palette one way or another.
* | avfilter/palettegen: consistently use the same frame for dimensionsClément Bœsch2015-02-26
| |
* | avfilter/palettegen: use a logging context for the dupped color warningClément Bœsch2015-02-26
| |
* | avfilter/palettegen: export color quantization ratioClément Bœsch2015-02-26
| |
* | avformat/adxdec: check avctx->channels for invalid valuesAndreas Cadhalpun2015-02-26
| | | | | | | | | | | | | | This avoids a null pointer dereference of pkt->data. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/adxdec: set avctx->channels in adx_read_headerAndreas Cadhalpun2015-02-26
| | | | | | | | | | | | | | It is used in adx_read_packet, which currently depends on the decoder/parser setting this value between reading the file header and demuxing the first packet. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/dss: implement seekingMichael Niedermayer2015-02-26
| | | | | | | | | | | | | | This assumes CBR (which is true for all samples i have) Previous version reviewed by: Oleksij Rempel <linux@rempel-privat.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/dss: set bitrateMichael Niedermayer2015-02-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/dss: set packet durationMichael Niedermayer2015-02-26
| | | | | | | | | | | | Value taken from the decoder implementation Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avformat/dss: correct sample rateMichael Niedermayer2015-02-26
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libavutil: add x86 optimized av_popcountJames Almer2015-02-25
| | | | | | | | | | Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/hevc_ps: Check that log2_ctb_size is not smaller than the bounds of ↵Michael Niedermayer2015-02-25
| | | | | | | | | | | | | | | | | | | | | | all profiles Fixes: unaligned memory access Fixes: signal_sigsegv_3344165_576_cov_3406448105_DBLK_A_MAIN10_VIXS_2.bit Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Suggested-by: Christophe Gisquet <christophe.gisquet@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/snow: Initialize spatial_decomposition_count to a valid valueMichael Niedermayer2015-02-25
| | | | | | | | | | | | | | | | Fixes undefined behavior Fixes: signal_sigsegv_24169e6_3445_cov_3778346427_snow_chroma_bug.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avutil/common: Fix integer overflow in av_clip_int8/16_cMichael Niedermayer2015-02-25
| | | | | | | | | | | | | | Fixes: signal_sigsegv_30420a5_2388_cov_1489993561_integra_lavf.mp4 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/hevcdsp: ARM NEON optimized qpel functionsSeppo Tomperi2015-02-25
| | | | | | | | | | | | uses comma as macro parameter separator Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'cehoyos/master'Michael Niedermayer2015-02-25
|\ \ | | | | | | | | | | | | | | | | | | | | | * cehoyos/master: Allow muxing h264 into ts with startcode "001" instead of "0001". lavfi/fade: Do not overread input buffer. Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | Allow muxing h264 into ts with startcode "001" instead of "0001".Carl Eugen Hoyos2015-02-25
| | | | | | | | | | | | | | | Fixes ticket #2220. Fixes ticket #4324.
| * | lavfi/fade: Do not overread input buffer.Carl Eugen Hoyos2015-02-25
| | |
* | | avcodec/hevc_ps: Sanity checks for some log2_* valuesMichael Niedermayer2015-02-25
| | | | | | | | | | | | | | | | | | log2 values which imply numeric overflow are not supported Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | avfilter/palettegen: move longest variable to a local scopeClément Bœsch2015-02-25
|/ / | | | | | | | | Also drop initialization since it is initialized later on before any usage.
* | avformat/mov: Check ctts_count before useMichael Niedermayer2015-02-25
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_ae74b5_3610_cov_1739568095_test.3g2 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/zmbv: Check len before reading in decode_frame()Michael Niedermayer2015-02-25
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_4d4eb0_3994_cov_3169972261_zmbv_15bit.avi Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/h264: Clear last_pic_for_ec on seeks and reinitsMichael Niedermayer2015-02-25
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: asan_heap-oob_2ff30d2_3479_cov_3803648058_src13_hrc7_525_420_2.264 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | avcodec/arm/hevcdsp_idct_neon: drop ".code 32"Michael Niedermayer2015-02-25
| | | | | | | | | | | | | | gas-preprocessor and armasm fail otherwise Tested-by: Timotius Margo Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '85b3b1c4ba7af9c2658442b0aafd27d613e1854b'Michael Niedermayer2015-02-25
|\| | | | | | | | | | | | | | | | | | | | | * commit '85b3b1c4ba7af9c2658442b0aafd27d613e1854b': xcbgrab: Unbreak parsing filename options Conflicts: libavdevice/xcbgrab.c See: db442c873631065e8719df6da91c016d25501084 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * xcbgrab: Unbreak parsing filename optionsLuca Barbato2015-02-24
| | | | | | | | | | | | CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'b31328d008985f87f0a7c83c700847cef1a4f08c'Michael Niedermayer2015-02-25
|\| | | | | | | | | | | | | | | | | | | | | * commit 'b31328d008985f87f0a7c83c700847cef1a4f08c': xcbgrab: Provide better names for the y and x option Conflicts: doc/indevs.texi libavdevice/x11grab.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * xcbgrab: Provide better names for the y and x optionLuca Barbato2015-02-24
| | | | | | | | | | | | | | | | | | | | Incidentally `-y` also collides with avconv global options. Update x11grab to match and document the option. CC: libav-stable@libav.org Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'da7e561964ee833678dc24fae0b0265358126d1e'Michael Niedermayer2015-02-25
|\| | | | | | | | | | | | | | | * commit 'da7e561964ee833678dc24fae0b0265358126d1e': matroskaenc: Allow writing track "forced" flag See: d88d0b6db6bd77269e3c2d3b4894c072f3860671 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * matroskaenc: Allow writing track "forced" flagJohn Stebbins2015-02-24
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit 'd594dbecce5f3af7f80bbf5bb1b516d740b69ccd'Michael Niedermayer2015-02-25
|\| | | | | | | | | | | | | * commit 'd594dbecce5f3af7f80bbf5bb1b516d740b69ccd': rtpdec: Rename the free method to close Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rtpdec: Rename the free method to closeMartin Storsjö2015-02-24
| | | | | | | | | | | | | | | | | | Many of these functions were named foo_free_context, and since the functions no longer should free the context itself, only allocated elements within it, the previous naming was slightly misleading. Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '8e32b1f0963d01d4f5d4803eb721f162e0d58d9a'Michael Niedermayer2015-02-25
|\| | | | | | | | | | | | | * commit '8e32b1f0963d01d4f5d4803eb721f162e0d58d9a': libavformat: Use ffio_free_dyn_buf where applicable Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * libavformat: Use ffio_free_dyn_buf where applicableMartin Storsjö2015-02-24
| | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* | Merge commit '199fb40278146c5bb162990c66ad3cd561abc780'Michael Niedermayer2015-02-25
|\| | | | | | | | | | | | | | | | | | | | | | | * commit '199fb40278146c5bb162990c66ad3cd561abc780': rtpdec: Use ffio_free_dyn_buf Conflicts: libavformat/rtpdec_latm.c libavformat/rtpdec_svq3.c libavformat/rtpdec_xiph.c Merged-by: Michael Niedermayer <michaelni@gmx.at>