summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/diracdec: check bitstream size related fields for overflowsMichael Niedermayer2016-03-281-5/+21
| | | | | | | | Fixes segfault Fixes Ticket5333 Regression since bfc8a4dabe5a0154b31128b59dca575010176441 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec: Remove libdcadec, we already have it merged internallyKieran Kunhya2016-03-274-314/+1
|
* avcodec/h264_slice: Check PPS more extensively when its not copiedMichael Niedermayer2016-03-271-3/+7
| | | | | | | Fixes Ticket5371 Fixes null pointer dereference Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/audiotoolboxenc: Fix compile error on OS X 10.8.Dan Dennedy2016-03-261-0/+2
| | | | | | | | | | Fixes error "libavcodec/audiotoolboxenc.c:294:50: error: use of undeclared identifier 'kAudioCodecPropertyPacketSizeLimitForVBR'." That was added to 10.9: https://developer.apple.com/library/mac/releasenotes/General/APIDiffsMacOSX10_9/AudioUnit.html Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/flicvideo: Implement padding in COPY chunks.Carl Eugen Hoyos2016-03-261-2/+6
| | | | Reviewed-by: Reimar
* avcodec/exr: add support for B44 and B44A compressionMartin Vignali2016-03-261-0/+119
|
* avcodec/jpeg2000dec: add slice threading supportPaul B Mahol2016-03-251-7/+8
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/jpeg2000dec: account two last bytes from end of bytestream as EOC markerPaul B Mahol2016-03-251-2/+2
| | | | | | This silences missing EOC marker when decoding j2k files with Psot set to 0. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* avcodec/libopenjpegenc: fix mixed declarations and codeJames Almer2016-03-251-1/+2
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libopenjpegdec: fix mixed declarations and codeJames Almer2016-03-251-2/+6
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/libutvideodec: copy frame so it has reference counters when ↵Michael Niedermayer2016-03-241-1/+11
| | | | | | | refcounted_frames is set Reviewed-by: maintainer Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* vc2enc: optimize and simplify quantizationRostislav Pehlivanov2016-03-241-7/+8
| | | | | | Everything except ORing the sign is now done in the LUT. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: simplify calc_slice_sizes()Rostislav Pehlivanov2016-03-231-19/+13
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: correctly zero out the slice size cacheRostislav Pehlivanov2016-03-231-1/+1
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: macro out slice size roundingRostislav Pehlivanov2016-03-231-6/+9
| | | | Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* lavc/psymodel: check for av_malloc failureGanesh Ajjanagadde2016-03-231-1/+6
| | | | | | | | | | No idea why in commit 01ecb7172b684f1c4b3e748f95c5a9a494ca36ec the checks were removed; this can lead to NULL pointer dereferences. This effectively reverts that portion of the commit. Reviewed-by: Benoit Fouet <benoit.fouet@free.fr> Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* avcodec/dvaudiodec: now that we got samples, fix 12bit casePaul B Mahol2016-03-231-1/+1
| | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* lavc: add AudioToolbox encodersRodger Combs2016-03-224-6/+482
| | | | Fixes trac #4828
* lavc: add AudioToolbox decodersRodger Combs2016-03-224-2/+364
| | | | Part of trac #4828
* all: move ff_exp10, ff_exp10f, ff_fast_powf to lavu/ffmath.hGanesh Ajjanagadde2016-03-2211-14/+11
| | | | | | | | | | | The idea is to use ffmath.h for internal implementations of math functions. Currently, it is used for variants of libm functions, but is by no means limited to such things. Note that this is not exported; use lavu/mathematics for such purposes. Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* vc2enc: add non-experimental support for all video formats from specRostislav Pehlivanov2016-03-221-35/+59
| | | | | | | | | Until now, for formats which were in the spec but not in the encoder's list of supported formats required the -strict -1 flag. This enables support for all video formats which are specified, all the way from QSIF525 to 8K. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: simplify count_hq_slice() and cachingRostislav Pehlivanov2016-03-211-15/+12
| | | | | | The count_hq_slice() function is always used with a SliceArgs struct Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: fix segfaultRostislav Pehlivanov2016-03-211-1/+1
| | | | | | | | Fixes trac bug #5353 Uninitialized memory for the initial quantization index Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec/mjpegenc_common: Store approximate aspect if exact cannot be storedMichael Niedermayer2016-03-191-2/+12
| | | | | | Fixes Ticket5244 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/hevc: Allow arbitrary garbage in bytestream as long as at least one NAL ↵Mark Thompson2016-03-191-2/+8
| | | | | | unit is found. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/aacenc_utils: replace powf(x,y) by expf(logf(x), y)Ganesh Ajjanagadde2016-03-181-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | This is ~2x faster for y not an integer on Haswell+GCC, and should generally be faster due to the fact that anyway powf essentially does this under the hood. Made an inline function in lavu/internal.h for this purpose. Note that there are some accuracy differences, that should generally be negligible. In particular, FATE still passes on this platform. Results in ~ 7% speedup in aac encoding with -march=native, Haswell+GCC. before: ffmpeg -i sin.flac -acodec aac -y sin_new.aac 6.05s user 0.06s system 104% cpu 5.821 total after: ffmpeg -i sin.flac -acodec aac -y sin_new.aac 5.67s user 0.03s system 105% cpu 5.416 total This is also faster than an alternative approach that pulls in powf, gets rid of the crufty NaN checks and other special cases, exploits knowledge about the intervals, etc. This of course does not exclude smarter approaches; just suggests that there would need to be significant work on this front of lower utility than searches for hotspots elsewhere. Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Reviewed-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Ganesh Ajjanagadde <gajjanag@gmail.com>
* vc2enc_dwt: remove outdated commentRostislav Pehlivanov2016-03-181-2/+0
| | | | | | Support for Haar was added a month or so ago. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* vc2enc: increase the starting value of the size scalerRostislav Pehlivanov2016-03-181-1/+1
| | | | | | | In some cases this caused the slice size rounding to generate invalid slice sizes and overwrite some slices. Signed-off-by: Rostislav Pehlivanov <atomnuker@gmail.com>
* avcodec/error_resilience: remove unneeded and disabled codeMichael Niedermayer2016-03-181-18/+3
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/error_resilience: wait for previous frame to be availableMichael Niedermayer2016-03-181-0/+2
| | | | | | This is possibly redundant but its more correct Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libwebpenc_animencoder: add missing braces to struct initializationJames Almer2016-03-171-1/+1
| | | | | | The first member of the WebPAnimEncoderOptions struct is non scalar Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/motion_est_template: Fix map cache use in qpel_motion_search()Michael Niedermayer2016-03-171-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* libwebpenc_animencoder: print library messages in verbose log levelsJames Almer2016-03-171-0/+1
| | | | | Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com>
* libwebpenc_animencoder: zero initialize the WebPAnimEncoderOptions structJames Almer2016-03-171-1/+1
| | | | | | | | This zeroes the WebPAnimEncoderOptions.verbose field, silencing library info messages printed to stderr. Reviewed-by: James Zern <jzern@google.com> Signed-off-by: James Almer <jamrial@gmail.com>
* avcodec/resample: Remove disabled and faulty codeMichael Niedermayer2016-03-161-6/+0
| | | | | | Fixes Ticket5345 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* dxva2_h264: fix size alignment assertsHendrik Leppkes2016-03-161-6/+6
| | | | Convert them to av_assert0 in the process
* lavc/dxva2_h264: Fix incorrect assert statement.Matt Oliver2016-03-161-1/+6
| | | | Signed-off-by: Matt Oliver <protogonoi@gmail.com>
* indeo2: Fix banding artefactsLuca Barbato2016-03-162-39/+138
| | | | | | | | | Rename luma table to delta table and change how it is used. CC: libav-stable@libav.org Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de> (cherry picked from commit f8c34f4b8d62afad3f63cf3d9617d73735bef8c1)
* indeo2data: K&R formatting cosmeticsLuca Barbato2016-03-161-104/+104
| | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de> (cherry picked from commit d4066a702407352a0648af882c34ea81a404fa2b)
* avcodec/mediacodec_sw_buffer: remove redundant articleMichael Niedermayer2016-03-151-1/+1
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* lavc/mediacodec: remove stray empty linesMatthieu Bouron2016-03-152-8/+0
|
* lavc/mediacodec: fix codec_name leakMatthieu Bouron2016-03-152-1/+3
|
* avcodec/pthread_frame: Remove unused variableMichael Niedermayer2016-03-151-1/+0
| | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* avcodec/aactab: do not use floats for constantsMarton Balint2016-03-152-14/+14
| | | | | | | | This may improve the precision of the fixed point encoder/decoder for some compilers and architectures. Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/cbrt_data: include avutil/libm.h to unbreak compilation on systems ↵Hendrik Leppkes2016-03-141-0/+2
| | | | without cbrt
* lavc/ffjni: remove use of private JniInvocation API to retreive the Java VMMatthieu Bouron2016-03-141-86/+3
| | | | | | | Android N will prevent users from loading non-public APIs. Users should only rely on the av_jni_set_java_vm function to set the Java VM.
* Move cbrt tables to separate cbrt_data(_fixed).c files.Reimar Döffinger2016-03-139-27/+116
| | | | | | Allows sharing and reusing the data between different files. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* lavc/hevc_ps: Fix default display window offsets for yuv422 and yuv444.Carl Eugen Hoyos2016-03-131-5/+6
|
* lavc/libx265: Support GBR encoding.Carl Eugen Hoyos2016-03-132-1/+13
|
* lavc/hevc_ps: Support GBR decoding.Carl Eugen Hoyos2016-03-132-1/+14
|
OpenPOWER on IntegriCloud