summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* 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>
* pcm_bluray: set bits_per_raw_sample for > 16-bitHendrik Leppkes2012-05-01
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* twinvq: fix out of bounds array accessMans Rullgard2012-05-01
| | | | | | | | | ModeTab.fmode has only 3 elements, so indexing it with ftype in the initialier for 'size' is invalid when ftype == FT_PPC. This fixes crashes with gcc 4.8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* WMAL: do not output last frame again if nothing was decoded in current packetJakub Stachowski2012-05-01
| | | | | | Reviewed-by: Mashiat Sarker Shakkhar <mashiat.sarker@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* WMAL: do not start decoding if frame does not end in current packetMashiat Sarker Shakkhar2012-05-01
| | | | | | | This fixes decoding of frames which span more than two packets. Tested with recit24.wma. Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* adpcm-thp: fix invalid array indexingMans Rullgard2012-05-01
| | | | | | Indexing outside array limits is invalid and breaks with gcc 4.8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ppc: add const where needed in scalarproduct_int16_altivec()Mans Rullgard2012-05-01
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* ppc: remove shift parameter from scalarproduct_int16_altivec()Mans Rullgard2012-05-01
| | | | | | | The shift parameter was removed from this interface in 7e1ce6a. This updates the Altivec implementation to match. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ppc: dsputil: do unaligned block accesses correctlyMans Rullgard2012-05-01
| | | | | | | | | | | | To load unaligned vector data in the usual way, explicit vec_ld() should be used rather than dereferencing a pointer to a vector type. When the VSX extension is enabled, gcc may compile vector pointer dereferences using the VSX lxvw4x instruction instead of the lvx instruction typically used with Altivec/VMX. As the behaviour of these instructions with unaligned addresses differs, it is important that only lvx is used here. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dvenc: do not call dsputil functions with stride not a multiple of 16Mans Rullgard2012-05-01
| | | | | | | | Allowing dsputil functions to assume the stride is a multiple of 16 even for smaller block sizes can simplify their implementation. This appears to be the only place this guarantee is not met. Signed-off-by: Mans Rullgard <mans@mansr.com>
* avcodec: introduce YCoCg colorspaceHendrik Leppkes2012-04-29
| | | | | | | | Non perceptual color model that aims to have an increase effectiveness in compression like the normal YCbCr while having near-lossless/lossless mapping to RGB. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avcodec: cosmetic cleanup on headerLuca Barbato2012-04-29
| | | | Apply coding style to the structs.