summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* xwd: convert to bytestream2.Ronald S. Bultje2012-03-18
|
* vqavideo: port to bytestream2 APIPaul B Mahol2012-03-18
| | | | | | | Protects against overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* prores: allow user to set fixed quantiserKostya Shishkov2012-03-18
|
* avcodec: add XBM encoderPaul B Mahol2012-03-17
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* resample: allocate a large enough output bufferJustin Ruggles2012-03-17
| | | | | Fixes invalid writes and crashes when doing conversions such as stereo to 5.1 channels or sample rate conversion on 5.1 channels.
* wmaenc: remove bit-exact hackJustin Ruggles2012-03-17
| | | | | | It may have improved cross-platform stability, but wasn't the only place in the encoder with bitexact issues. It is no longer needed because we have FATE tests for float encoders using fuzzy comparison.
* qtrle: Use bytestream2 functions to prevent buffer overreads.Aneesh Dogra2012-03-16
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vqavideo: check malloc return valuesPaul B Mahol2012-03-16
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* threads: fix old frames returned after avcodec_flush_buffers()Uoti Urpala2012-03-16
| | | | | | | | | | Calling avcodec_flush_buffers() and then avcodec_decode_video2() with a 0-sized packet (to get remaining buffered frames) could incorrectly return an old frame from before the avcodec_flush_buffers() call. Add a loop in ff_thread_flush() to zero the got_frame field of each thread to ensure the old frames will not be returned. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* MPV: always mark dummy frames as referenceJanne Grunau2012-03-16
| | | | | | | If the dummy frame are not created from a reference frame they could be deleted untimely resulting in multithreaded decoder waiting on the current frame to finish. Noticed by Ronald S. Bultje in the RV34 decoder with a broken file.
* h264: fix deadlocks on incomplete reference frame decoding.Ronald S. Bultje2012-03-16
| | | | | | | | | | | | | | | | If decoding a second complementary field, and the first was decoded in our thread, mark decoding of that field as complete. If decoding fails, mark the decoded field/frame as complete. Do not allow switching between field modes or field/frame mode between slices within the same field/frame. Ensure that two subsequent fields cover top/bottom (rather than top/frame, bottom/frame or such nonsense situations). Fixes various deadlocks when decoding samples with errors in reference frames. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpeg4: report frame decoding completion at ff_MPV_frame_end().Ronald S. Bultje2012-03-16
| | | | | | | Prevents hangs on corrupt input. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mimic: don't use self as reference, and report completion at end of decode().Ronald S. Bultje2012-03-16
| | | | | | | Fixes hangs on corrupt samples that reference self-frames. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* h264: K&R formatting cosmeticsDiego Biurrun2012-03-16
| | | | Also remove some disabled code and fix a few comment typos.
* s3tc.h: Add missing #include to fix standalone header compilation.Diego Biurrun2012-03-16
|
* dxa: remove useless codePaul B Mahol2012-03-15
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: stricter reference limit enforcement.Ronald S. Bultje2012-03-14
| | | | | | | | | Progressive images can have only 16 references, error out if there are more, since the data is almost certainly corrupt, and the invalid value will lead to random crashes or invalid writes later on. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* h264: increase reference poc list from 16 to 32.Ronald S. Bultje2012-03-14
| | | | | | | | Interlaced images can have 32 references (16 per field), so limiting the array size to 16 leads to invalid writes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* xa_adpcm: limit filter to prevent xa_adpcm_table[] array bounds overruns.Ronald S. Bultje2012-03-14
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* snow: check reference frame indices.Michael Niedermayer2012-03-14
| | | | | | | | Fixes NULL ptr dereference Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* snow: reject unsupported chroma shifts.Michael Niedermayer2012-03-14
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* anm: convert to bytestream2 APIPaul B Mahol2012-03-14
| | | | | | | Protects from overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* bytestream: add more unchecked variants for bytestream2 APIPaul B Mahol2012-03-14
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* jvdec: unbreak video decodingPaul B Mahol2012-03-14
| | | | | | | | The safe bitstream reader broke it since the buffer size was specified in bytes instead of bits. Signed-off-by: Janne Grunau <janne-libav@jannau.net> CC: libav-stable@libav.org
* h264: Fix invalid interlaced/progressive MB combinations for direct mode ↵Michael Niedermayer2012-03-13
| | | | | | | | prediction. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libx264: add 'stats' private option for setting 2pass stats filename.Anton Khirnov2012-03-13
| | | | | | | x264 always opens the file itself with fopen, so we cannot use the standard lavc stats mechanism. CC: libav-stable@libav.org
* libx264: fix help text for slice-max-size option.Anton Khirnov2012-03-13
| | | | CC: libav-stable@libav.org
* dxva2_vc1: pass the overlap flag to the decoderHendrik Leppkes2012-03-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dxva2_vc1: fix decoding of BI framesHendrik Leppkes2012-03-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dfa: convert to bytestream2 APIPaul B Mahol2012-03-12
| | | | | | | Protects from overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* anm decoder: move buffer allocation from decode_init() to decode_frame()Peter Ross2012-03-12
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* h264: improve parsing of broken AVC SPSMichael Niedermayer2012-03-13
| | | | | | | | | | | | Parsing the entire NAL as SPS fixes decoding of some AVC bitstreams with broken escaping. Since the size of the NAL unit is known and checked against the buffer end we can parse it entirely without buffer overreads. Fixes playback of http://streams.videolan.org/streams/mp4/Mr_MrsSmith-h264_aac.mp4 Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* pcm-mpeg: convert to bytestream2 APIPaul B Mahol2012-03-12
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* Revert "h264: clear trailing bits in partially parsed NAL units"Janne Grunau2012-03-12
| | | | | | | | | | | | | This reverts commit 729ebb2f185244b0ff06d48edbbbbb02ceb4ed4e. There was an off-by-one error in the bit mask calculation clearing actually the last valid bit and causing http://bugzilla.libav.org/show_bug.cgi?id=227 The broken sample (Mr_MrsSmith-h264_aac.mp4) the commit was fixing does not work after correcting the off-by-one error. CC: libav-stable@libav.org
* remove iwmmxt optimizationsJanne Grunau2012-03-12
| | | | | | The were broken since August of 2010 without anyone noticing until three weeks ago. Nobody cares about it anymore and hopefully Marvell will support NEON like in the PXA978 from now on.
* mimic: do not continue if swap_buf_size is 0Paul B Mahol2012-03-12
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* mimic: convert to bytestream2 APIPaul B Mahol2012-03-12
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* frwu: use MKTAG to check marker instead of AV_RL32Paul B Mahol2012-03-12
| | | | | | | Using intreadwrite.h for this is overkill. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* txd: port to bytestream2 APIPaul B Mahol2012-03-12
| | | | | | | Protects against overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* c93: convert to bytestream2 APIPaul B Mahol2012-03-12
| | | | | | | Protects against overreads. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Martin Storsjö <martin@martin.st>
* dsicinvideo: validate buffer offset before copying pixels.Ronald S. Bultje2012-03-11
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cook: error out on quant_index values outside [-63, 63] range.Ronald S. Bultje2012-03-10
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpc: pad mpc_CC/SCF[] tables to allow for negative indices.Ronald S. Bultje2012-03-10
| | | | | | | | MPC8 allows indices of mpc_CC up to -1, and mpc_SCF up to -6, thus pad the tables by that much on the left end. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cook: expand dither_tab[], and make sure indexes into it don't overflow.Ronald S. Bultje2012-03-10
| | | | | | | Fixes overflows in accessing dither_tab[]. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* xxan: reindent xan_unpack_luma().Ronald S. Bultje2012-03-10
| | | | It used 3-space indent instead of 4-space indent.
* xxan: protect against chroma LUT overreads.Ronald S. Bultje2012-03-10
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* xxan: convert to bytestream2 API.Ronald S. Bultje2012-03-10
| | | | | | | Protects against overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* xxan: don't read before start of buffer in av_memcpy_backptr().Ronald S. Bultje2012-03-10
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vp8: convert mbedge loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-10
|
* vp8: convert inner loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-10
|