summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* libschroedingerdec: Change AVPicture to AVFrame and use SchroTag to store ptsJordi Ortiz2012-05-08
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* options_table: Add some missing #includes to fix "make checkheaders".Alex Converse2012-05-08
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lagarith: add YUY2 decoding supportKostya Shishkov2012-05-08
| | | | | | | Unlike other variants, for YUY2 we need to use different prediction: * on line 0 for luma we should left predict starting from the second pixel * on line 1 we should left predict first 4 pixels for luma and 2 for chroma * median prediction employed here is taken directly from HuffYUV
* Support decoding unaligned rgb24 lagarith.Carl Eugen Hoyos2012-05-08
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* dv: Split profile handling code into a separate file.Diego Biurrun2012-05-07
|
* qdm2: clip array indices returned by qdm2_get_vlc().Ronald S. Bultje2012-05-07
| | | | | | | | | | Prevents subsequent overreads when these numbers are used as indices in arrays. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* avcodec: do not needlessly set packet size to 0 in avcodec_encode_audio2()Justin Ruggles2012-05-07
| | | | It is already set to 0 by av_free_packet()
* avcodec: for audio encoding, reset output packet when it is not validJustin Ruggles2012-05-07
|
* avcodec: refactor avcodec_encode_audio2() to merge common branchesJustin Ruggles2012-05-07
|
* avcodec: remove fallbacks for AVCodec.encode() in avcodec_encode_audio2()Justin Ruggles2012-05-07
| | | | We no longer have any audio encoders using AVCodec.encode().
* libschroedinger: Switch to function names more in line with Libav style.Diego Biurrun2012-05-07
|
* Move code shared between libdirac and libschroedinger to libschroedinger.Diego Biurrun2012-05-07
| | | | | This also involves making some function static and changing the name prefixes of some functions and structures.
* h264: Remove a commented-out function pointer typedef.Diego Biurrun2012-05-07
|
* txd: Remove write-only variable in txd_decode_frame().Diego Biurrun2012-05-07
| | | | libavcodec/txd.c:49:60: warning: variable ‘mipmap_count’ set but not used
* mmvideo.c: Remove unused variable in mm_decode_pal().Diego Biurrun2012-05-07
| | | | libavcodec/mmvideo.c:87:9: warning: variable ‘i’ set but not used
* build: cosmetics: Add missing end-of-line backslashes to item lists.Diego Biurrun2012-05-07
|
* build: cosmetics: Split HEADERS/OBJS/PROGS lists into one entry per line.Diego Biurrun2012-05-07
|
* libschroedinger: Move a function to avoid a forward declaration.Diego Biurrun2012-05-07
|
* pthread: warn on high thread countsSean McGovern2012-05-07
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lavc: add sample rate and channel layout to AVFrame.Anton Khirnov2012-05-07
| | | | Rationale is the same as for video width/height etc.
* zerocodec: check if the previous frame is missingPaul B Mahol2012-05-06
| | | | | | | | | ZeroCodec relies on the keyframe flag being set in the container, and prev is the previously decoded frame. A keyframe flags incorrectly set will lead to this condition. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* dfa: use more meaningful return codesKostya Shishkov2012-05-06
|
* eatgv: check vector_bitsMichael Niedermayer2012-05-06
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* eatgv: check motion vectorsKostya Shishkov2012-05-06
|
* Mark a number of variables only used in av_dlog() calls as av_unused.Diego Biurrun2012-05-06
| | | | This fixes a number of unused-but-set gcc warnings.
* dvdec: drop const qualifier from variable to eliminate a warningDiego Biurrun2012-05-06
| | | | libavcodec/dvdec.c:344:12: warning: assignment discards ‘const’ qualifier from pointer target type
* avcodec: Improve comment for thread_safe_callbacks to avoid misinterpretation.Robert Nagy2012-05-06
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* lagarith: make offset array type unsignedKostya Shishkov2012-05-06
| | | | This is logical and also fixes checking for the fourth plane offset.
* dfa: add some checks to ensure that decoder won't write past frame endKostya Shishkov2012-05-06
|
* aacps: NEON optimisationsMans Rullgard2012-05-05
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacps: align some arraysMans Rullgard2012-05-05
| | | | | | This is required for SIMD optimisations. Signed-off-by: Mans Rullgard <mans@mansr.com>
* aacps: move some loops to function pointersMans Rullgard2012-05-05
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* WMAL: Shift output samples by the specified number of padding zeroes.Jakub Stachowski2012-05-05
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* WMAL: Restore removed code in mclms_predict()Mashiat Sarker Shakkhar2012-05-05
| | | | | | Based on observations made by Jakub Stachowski <qbast@go2.pl> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* png: check bit depth for PAL8/Y400A pixel formats.Ronald S. Bultje2012-05-04
| | | | | | | | Wrong bit depth can lead to invalid rowsize values, which crashes the decoder further down. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* celp filters: Do not read earlier than the start of the 'out' vector.Alex Converse2012-05-04
| | | | CC: libav-stable@libav.org
* vqavideo: return error if image size is not a multiple of block sizeMans Rullgard2012-05-03
| | | | | | | | | | | The decoder assumes in various places that the image size is a multiple of the block size, and there is no obvious way to support odd sizes. Bailing out early if the header specifies a bad size avoids various errors later on. Fixes CVE-2012-0947. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpeg12: fixed parsing in some mpeg2 streamsHendrik Leppkes2012-05-03
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* Add SMPTE240M transfer characteristics flag.Hendrik Leppkes2012-05-03
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* motionpixels: Clip YUV values after applying a gradient.Alex Converse2012-05-02
| | | | | | Prevents illegal reads on truncated and malformed input. CC: libav-stable@libav.org
* jpeg: handle progressive in second field of interlaced.Ronald S. Bultje2012-05-02
| | | | | | | | Progressive data is allocated later in decode_sof(), not allocating that data leads to NULL dereferences. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* ituh263dec: Implement enough of Annex O (scalability) to fix a FPE.Michael Niedermayer2012-05-02
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* h263: more strictly forbid frame size changes with frame-mt.Ronald S. Bultje2012-05-02
| | | | | | | Prevents crashes because the old check was incomplete. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* h264: additional protection against unsupported size/bitdepth changes.Ronald S. Bultje2012-05-02
| | | | | | | Fixes crashes in codepaths not covered by original checks. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* tta: prevents overflows for 32bit integers in header.Ronald S. Bultje2012-05-02
| | | | | | | | This prevents sample_rate/data_length from going negative, which caused various crashes and undefined behaviour further down. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vp8: update frame size changes on thread context switches.Ronald S. Bultje2012-05-02
| | | | | | | | | This properly synchronizes frame size changes between threads if subsequent threads abort decoding before frame size is initialized, i.e. it prevents the thread after that from ping-ponging back to the original value. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* snowdsp: explicitily state instruction size.Ronald S. Bultje2012-05-02
| | | | Fixes a compile error with clang at -O0.
* wmall: fix reconstructing audio with uncoded channelsKostya Shishkov2012-05-02
|
* WMAL cosmetics: fix indentationMashiat Sarker Shakkhar2012-05-02
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* indeo3: fix motion vector validationHendrik Leppkes2012-05-01
| | | | | | | | The index of the motion vector has to be checked before being multiplied by 2 for the array index. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>