summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
| * lavc: Move scenechange_threshold to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | This option is only used by mpegvideoenc, x264, and xavs. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '5764d38173661c29d954711dd5abfddf709e9ba4'Derek Buitenhuis2016-01-28
|\| | | | | | | | | | | | | * commit '5764d38173661c29d954711dd5abfddf709e9ba4': lavc: Move chromaoffset to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move chromaoffset to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | This option is only used by x264 and xavs. It is a very codec-specific option, so deprecate the global variant. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '0ac9f33a9e69c64eee592791be3c5441a6a3d6b7'Derek Buitenhuis2016-01-28
|\| | | | | | | | | | | | | * commit '0ac9f33a9e69c64eee592791be3c5441a6a3d6b7': lavc: Move frame_skip_* to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move frame_skip_* to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | These options are only used by mpegvideoenc and vpx. They are very codec-specific options, so deprecate the global variants. Add an allowed value to the private options for frame_skip_cmp which seems to have been forgotten, but perfectly working. The libvpx frame dropping feature uses one of such option (frame_skip_threshold) without the other three. For this reason rename the option to something more consistent with the other libvpx variables. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | Merge commit '84c4714f397c9c50eb9d49008cc1c08385f68f31'Derek Buitenhuis2016-01-28
|\| | | | | | | | | | | | | * commit '84c4714f397c9c50eb9d49008cc1c08385f68f31': lavc: Move brd_scale to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move brd_scale to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | | | This option is only used by mpegvideoenc, It is a very codec-specific option, so deprecate the global variant. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
* | avcodec: add dvaudio parserPaul B Mahol2016-01-28
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc/mjpegdec: use ptrdiff_t instead of ssize_tMatthieu Bouron2016-01-28
| | | | | | | | Fixes build on msvc.
* | avcodec/h264: Fix memleak in case of ff_h264_decode_extradata() failureMichael Niedermayer2016-01-28
| | | | | | | | | | | | Fixes Ticket5139 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | qsvenc: Fix b_strategy typoDerek Buitenhuis2016-01-28
| | | | | | | | | | | | This was introduced in 0e6c8532215790bbe560a9eea4f3cc82bb55cf92. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | libavcodec/util: Fix timebase overflow checkDerek Buitenhuis2016-01-27
| | | | | | | | | | | | It could accidentally divide by zero if num was zero. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/version: Add missing #endifDerek Buitenhuis2016-01-27
| | | | | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | Merge commit '0e6c8532215790bbe560a9eea4f3cc82bb55cf92'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit '0e6c8532215790bbe560a9eea4f3cc82bb55cf92' lavc: Move b_frame_strategy and b_sensitivity to codec private options Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Move b_frame_strategy and b_sensitivity to codec private optionsVittorio Giovara2016-01-21
| | | | | | | | | | | | | | | | | | | | The b_frame_strategy option is only used by mpegvideoenc, qsv, x264, and xavs, while b_sensitivity is only used by mpegvideoenc. These are very codec-specific options, so deprecate the global variants. Set proper limits to the maximum allowed values. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * riff: add YUYV FourCC (Drastic YUYV)Piotr Bandurski2016-01-21
| |
* | Merge commit 'd43a165bda0eae95f4c7a168c7d13d94966c1a09'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit 'd43a165bda0eae95f4c7a168c7d13d94966c1a09': imgconvert: Add the proper API guards to a deprecated function Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Add the proper API guards to a deprecated functionVittorio Giovara2016-01-21
| |
* | Merge commit 'f7168d7016f7d1034ec90223fa91a90711704e11'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit 'f7168d7016f7d1034ec90223fa91a90711704e11': imgconvert: Move AVPicture-related static function to the deprecated section Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Move AVPicture-related static function to the deprecated sectionVittorio Giovara2016-01-21
| |
* | Merge commit '892f037c55d86ce36f8705fbeab052189312a13e'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit '892f037c55d86ce36f8705fbeab052189312a13e': imgconvert: Move the shrink functions only where needed Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Move the shrink functions only where neededVittorio Giovara2016-01-21
| |
* | Merge commit '9d3ea5cbf57e30bf2717a9ce64e858dad8a02aa6'Derek Buitenhuis2016-01-27
|\| | | | | | | | | | | | | * commit '9d3ea5cbf57e30bf2717a9ce64e858dad8a02aa6': imgconvert: Drop outdated comment block Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * imgconvert: Drop outdated comment blockVittorio Giovara2016-01-21
| |
| * libkvazaar: Set frame rate as a rational numberArttu Ylä-Outinen2016-01-19
| | | | | | | | | | | | | | | | | | | | | | | | Updates libkvazaar to pass the exact frame rate to Kvazaar by setting the numerator and denominator separately instead of a single floating point number. The exact frame rate is needed for writing timing info to the bitstream. Requires Kvazaar version 0.8.1. Signed-off-by: Arttu Ylä-Outinen <arttu.yla-outinen@tut.fi> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* | Merge commit '7486418683bd2477772e03aab573cf846c12fb0d'Derek Buitenhuis2016-01-27
|\| | | | | | | Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * lavc: Make sure that the effective timebase would not overflowArttu Ylä-Outinen2016-01-19
| | | | | | | | | | | | | | In the unlikely situation the user decides to set ticks_per_frame and timebase to a value large enough to overflow. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * mathops: mips: Correctly enable loongson-specific assemblyLuca Barbato2016-01-19
| | | | | | | | | | The code wrongly assumed that the instructions used are supported on mips64, while it is supported only on loongson cpus.
| * x86: build: Group all encoder objects togetherDiego Biurrun2016-01-18
| |
* | lavc/mjpegdec: speed up scan data copyMatthieu Bouron2016-01-27
| |
* | Merge commit '4f22b138886e29f7fffa8c715673951e51be9f32'Derek Buitenhuis2016-01-27
|\| | | | | | | Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
| * x86: ac3dsp: Drop forward declaration for nonexisting functionDiego Biurrun2016-01-18
| |
| * dca: fix misaligned access in ff_dca_convert_bitstreamAndreas Cadhalpun2016-01-15
| | | | | | | | | | | | | | | | | | | | | | | | The function is used on unaligned buffers (such as those provided by AVPacket), accessing them as uint16_t causes SIGBUS crashes on architectures like SPARC. This fixes ubsan runtime error: load of misaligned address for type 'const uint16_t', which requires 2 byte alignment Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * xwddec: prevent overflow of lsize * avctx->heightAndreas Cadhalpun2016-01-13
| | | | | | | | | | | | | | | | | | This is used to check if the input buffer is larger enough, so if this overflows it can cause a false negative leading to a segmentation fault in bytestream2_get_bufferu. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * on2avc: limit number of bits to 30 in get_egolombAndreas Cadhalpun2016-01-13
| | | | | | | | | | | | | | | | | | | | More don't fit into the integer output. Also use get_bits_long, since get_bits only supports reading up to 25 bits, while get_bits_long supports the full integer range. Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * nvenc: generate dts properlyAnton Khirnov2016-01-12
| | | | | | | | | | | | | | | | | | | | When there is a non-zero decoding delay due to reordering, the first dts should be lower than the first pts (since the first packet fed to the decoder does not produce any output). Use the same scheme used in mpegvideo_enc (which comes from x264 originally) -- wait for first two timestamps and extrapolate linearly to the past to produce the first dts value.
| * nvenc: fix encoding with B-framesAnton Khirnov2016-01-12
| | | | | | | | | | | | | | | | | | | | | | When B-frames are enabled and the encoder returns success, all currently pending buffers immediately become valid and can be returned to the caller. We can only return one packet at a time, so all the other pending buffers should be transferred to a new 'ready' fifo, from where they can be returned in subsequent calls (in which the encoder does not produce any new output). This bug was hidden by the incorrect testing of the encoder return value (the return value was overwritten before it was tested).
| * nvenc: flush the encoder before closing it, as required by the docsAnton Khirnov2016-01-12
| | | | | | | | Otherwise, closing the encoder can crash.
| * nvenc: rename encodersAnton Khirnov2016-01-12
| | | | | | | | | | Change 'nvenc_<codec>' to '<codec>_nvenc', which is consistent with other similar decoders and encoders (QSV, MMAL).
| * nvenc: better error handlingAnton Khirnov2016-01-12
| | | | | | | | Return proper error codes and print more descriptive error messages.
| * lavc: Use get_bitsz where neededAndreas Cadhalpun2016-01-11
| | | | | | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * lavc: Add get_bitsz()Andreas Cadhalpun2016-01-11
| | | | | | | | | | | | get_bit variant supporting 0-bits reads. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
| * sunrastenc: Properly load codec private optionsVittorio Giovara2016-01-11
| | | | | | | | | | Initialize the private class field and give the class a more appropriate name. Add a class member to the codec context.
| * get_bits: Support max_depth > 2 in GET_RL_VLC_INTERNALKieran Kunhya2016-01-11
| |
| * lavu: add AV_CEIL_RSHIFT and use it in various placesClément Bœsch2016-01-11
| | | | | | | | Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
| * avpacket: fix size check in packet_allocAndreas Cadhalpun2016-01-07
| | | | | | | | | | | | | | | | | | | | | | The previous check only caught sizes from -AV_INPUT_BUFFER_PADDING_SIZE to -1. This fixes ubsan runtime error: signed integer overflow: 2147483647 + 32 cannot be represented in type 'int' Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* | avutil: Rename FF_CEIL_COMPAT to AV_CEIL_COMPATDerek Buitenhuis2016-01-27
| | | | | | | | | | | | | | | | | | | | Libav, for some reason, merged this as a public API function. This will aid in future merges. A define is left for backwards compat, just in case some person used it, since it is in a public header. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* | avcodec/jpeg2000dec: More completely check cdefMichael Niedermayer2016-01-27
| | | | | | | | | | | | | | | | Fixes out of array read Fixes: j2k-poc.bin Found-by: Lucas Leong <wmliang.tw@gmail.com> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/dvaudiodec: support cases when codec_tag is not set but block_align isPaul B Mahol2016-01-27
| | | | | | | | | | | | Support packets larger than block size, return single block size. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/dvaudiodec: set channel layoutPaul B Mahol2016-01-27
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>