summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* | 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>
* | lavc/mjpegdec: Set SAR even if no resolution is available.Carl Eugen Hoyos2016-01-27
| | | | | | | | Fixes ticket #4479.
* | lavc/h264: Show "Increasing reorder buffer" message with loglevel info.Carl Eugen Hoyos2016-01-27
| | | | | | | | See ticket #5138 for a sample.
* | svq1enc: fix out of bounds readsAndreas Cadhalpun2016-01-27
| | | | | | | | | | | | | | | | | | | | level can be 5, but there are only four codebooks. Fixes ubsan runtime error: index 5 out of bounds for type 'int8_t [4][96]' Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
* | avcodec/dvaudiodec: only stereo makes sensePaul B Mahol2016-01-26
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec: add Ulead DV audio decoderPaul B Mahol2016-01-26
| | | | | | | | | | | | Fixes #1564. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | lavc/libzvbi-teletextdec: add support for setting background opacityMarton Balint2016-01-25
| | | | | | | | Signed-off-by: Marton Balint <cus@passwd.hu>
* | lavc/libzvbi-teletextdec: remove cmax variableMarton Balint2016-01-25
| | | | | | | | | | | | Use VBI_NB_COLORS instead. Signed-off-by: Marton Balint <cus@passwd.hu>
* | lavc/libzvbi-teletextdec: use the built-in transparent color for transparent ↵Marton Balint2016-01-25
| | | | | | | | | | | | background Signed-off-by: Marton Balint <cus@passwd.hu>
* | lavc/rawdec: Use 16-byte line alignment for AV_PIX_FMT_MONOWHITEMats Peterson2016-01-25
| | | | | | | | | | | | | | | | The line alignment for 1 bpp raw AV_PIX_FMT_MONOWHITE video (currently used for AVI) was previously 4 bytes, which generated alignment warning messages, not only for odd-width files. The alignment is now 16 bytes. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/synth_filter: split off remaining code from dcadec filesJames Almer2016-01-25
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/dcaenc: do not change user requested bitratePaul B Mahol2016-01-25
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/dcaenc: return correct number of bytes in output packetPaul B Mahol2016-01-25
| | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | avcodec/utils: run ff_frame_thread_encoder_init() only for encodersMichael Niedermayer2016-01-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/rawdec: Check height and packet sizeMichael Niedermayer2016-01-25
| | | | | | | | | | | | Avoids potential division by 0 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | lavc/rawdec: Use 16-byte line alignment for 1, 2, 4 and 8 bppMats Peterson2016-01-25
| | | | | | | | | | | | | | | | This patch aligns the lines of 1 bpp depth for QuickTime, and 2, 4 and 8 bpp depths for AVI and QuickTime, on 16-byte boundaries. At the same time, the packet row stride is properly catered for. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/rawdec: initialize palette for monoMats Peterson2016-01-25
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | avcodec/webp: fix decoder dependenciesJames Almer2016-01-24
| | | | | | | | Signed-off-by: James Almer <jamrial@gmail.com>
* | avcodec/flacenc: fix calculation of bits required in case of custom sample ratePaul B Mahol2016-01-24
| | | | | | | | | | | | | | | | Sample rate of 11025 takes 16 bits but previous code would pick only 8. Fixes assertion failure. Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com> Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | Print the whitelists if entities are not found on themMichael Niedermayer2016-01-24
| | | | | | | | Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
* | fate/cabac: replace uninitialized bytes by random bytesMichael Niedermayer2016-01-23
| | | | | | | | | | | | Fixes valgrind warning Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>