summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
...
* wmall: fix seeking.Ronald S. Bultje2012-03-28
|
* lagarith: fix buffer overreads.Ronald S. Bultje2012-03-28
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dvdec: drop unnecessary dv_tablegen.h #includeDiego Biurrun2012-03-28
| | | | | dvdec.c uses nothing from dv_tablegen.h. As a welcome side-effect, this fixes compilation of that file with hardcoded tables enabled.
* Replace memset(0) by zero initializations.Diego Biurrun2012-03-28
| | | | Also remove one pointless zero initialization in rangecoder.c.
* faandct: Remove FAAN_POSTSCALE define and related code.Diego Biurrun2012-03-28
| | | | It is not a user-accessible option and unlikely to ever be changed.
* dvenc: print allowed profiles if the video doesn't conform to any of them.Anton Khirnov2012-03-28
|
* avcodec_encode_{audio,video}: only reallocate output packet when it has ↵Anton Khirnov2012-03-28
| | | | | | | non-zero size. Otherwise realloc would free it, which would result in double free later.
* westwood_vqa: fix SND0 chunk handlingPaul B Mahol2012-03-27
| | | | | | | | Version from vqa header does not dictate which sound chunks may appear in file. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* raw: forward avpicture_fill() error code in raw_decode().Ronald S. Bultje2012-03-27
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* dv: Split off DV video decoder into its own file.Diego Biurrun2012-03-27
|
* vc1: Do not read from array if index is invalid.Mashiat Sarker Shakkhar2012-03-26
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* targa: convert to bytestream2.Ronald S. Bultje2012-03-26
| | | | | | | Also remove some write-only variables or write-only variable assignments, remove internal colorspace conversion to native endianness (that can be done by swscale much more efficiently), and some cosmetics.
* rv34: set mb_num_left to 0 after finishing a frameRonald S. Bultje2012-03-26
| | | | | | | | | | | | | Prevents running error resilience on a previous frame which will write to the pic->mb_type[] array of the previous image. The array might already be re-used for a new image in a subsequent thread, thus cause two threads to write to the same pic->mb_type[] array, causing a race condition which can crash in rv34_decode_cbp(), called by rv34_decode_inter_mb_header() (which accesses mb_type[] twice, assuming values are maintained, which the race condition breaks). Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* build: ppc: drop stray leftover backslashDiego Biurrun2012-03-26
|
* build: Only clean the architecture subdirectory we build for.Diego Biurrun2012-03-26
| | | | | This allows simplifying the Makefiles; it is no longer necessary to register arch subdirectory Makefiles, just putting them in place is enough.
* build: prettyprinting cosmeticsDiego Biurrun2012-03-26
|
* smacker: convert palette and header reading to bytestream2.Ronald S. Bultje2012-03-25
|
* alac: convert extradata reading to bytestream2.Ronald S. Bultje2012-03-25
|
* x86: dsputil: prettyprint gcc inline asmDiego Biurrun2012-03-25
|
* x86: K&R prettyprinting cosmetics for dsputil_mmx.cDiego Biurrun2012-03-25
|
* x86: conditionally compile H.264 QPEL optimizationsDiego Biurrun2012-03-25
|
* dsputil_mmx: Surround QPEL macros by "do { } while (0);" blocks.Diego Biurrun2012-03-25
| | | | This makes them safe to use in non-fully braced if-blocks and similar.
* dpcm: convert to bytestream2.Ronald S. Bultje2012-03-24
|
* interplayvideo: convert to bytestream2.Ronald S. Bultje2012-03-24
|
* h264: fix memleak in error path.Alexander Strange2012-03-24
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* pthread: Immediately release all frames in ff_thread_flush()Alexander Strange2012-03-24
| | | | | | | | Before this, they were only added to the delayed release queue and not freed until later. This could lead to unnecessary memory use or buffer exhaustion. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* h264: Add check for invalid chroma_format_idcAlexander Strange2012-03-24
| | | | | | Fixes a crash when FF_DEBUG_PICT_INFO is used. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* utvideo: port header reading to bytestream2.Ronald S. Bultje2012-03-24
| | | | | | | Fixes crash during slice size reading if slice_end goes negative. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pthread: free progress if buffer allocation failed.Ronald S. Bultje2012-03-24
| | | | | | | Else we run out of progress variables after a few failed buffer allocations. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc/avconv: support changing frame sizes in codecs with frame mt.Ronald S. Bultje2012-03-24
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* utvideo: mark output picture as keyframe.Kostya Shishkov2012-03-24
| | | | Spotted by Антон.
* sunrast: Add support for negative linesize.Aneesh Dogra2012-03-24
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* vp8: fix update_lf_deltas in libavcodec/vp8.cJanne Salonen2012-03-24
| | | | | | | | | lf_delta.ref[i] and lf_delta.mode[i] were incorrectly reset to 0 if specific delta value was not updated. Fixed to keep the previous value if flag indicates that element in question is not updated. Signed-off-by: Janne Salonen <jsalonen@google.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ralf: read Huffman code lengths without GetBitContextKostya Shishkov2012-03-24
| | | | | Those descriptions are stored in nibbles, so they are easy to extract. And this way we don't need to pad tables for possible bit reader overreads.
* rv34: error out on size changes with frame threadingJanne Grunau2012-03-23
|
* aacsbr: Add a debug check to sbr_mapping.Alex Converse2012-03-23
| | | | | | | | There have been multiple bugs caused by inconsistencies here. Based on an idea from Michael Niedermayer. CC: libav-stable@libav.org
* aac: Reset some state variables when turning SBR offAlex Converse2012-03-23
| | | | | | | | This makes sure the reset flag gets set when SBR gets turned back on and sets control variables for unguided mode back to their defaults. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* aac: Reset PS parameters on header decode failure.Alex Converse2012-03-23
| | | | | | | | If the next header frame codes zero envelopes the previous frame's values will be used. Consequently the invalid values must be cleared. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* aacsbr: handle m_max values smaller than 4.Ronald S. Bultje2012-03-23
| | | | | | | | Prevents a signflip in the counter, and a subsequent crash because of overreads/overwrites. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* rv34: Handle only complete frames in frame-mt.Janne Grunau2012-03-23
| | | | | | | | Correct handling of errors to prevent hags or crashes is very complex otherwise. The frame initializing is also moved from decode_slice() to decode_frame() for clarity.
* MPV: set reference frame pointers to NULL when allocation of dummy pictures ↵Janne Grunau2012-03-23
| | | | fails
* zerocodec: factorize loopMichael Niedermayer2012-03-23
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* wmavoice: fix stack overread.Ronald S. Bultje2012-03-22
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wmalossless: error out if a subframe is not used by any channel.Ronald S. Bultje2012-03-22
| | | | | | | Prevents infinite loop because min_channel_len never increments. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* vqa: check palette chunk size before reading data.Ronald S. Bultje2012-03-22
| | | | | | | Prevents overreads beyond buffer boundaries. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wmalossless: reset sample pointer for each subframe.Ronald S. Bultje2012-03-22
| | | | | | | Prevents overwrites when some subframes only encode some channels. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* wmalossless: error out on invalid values for order.Ronald S. Bultje2012-03-22
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* pngenc: better upper bound for encoded frame size.Anton Khirnov2012-03-22
| | | | | | Fixes encoding very large pictures. Thanks to Костя for providing the formula.
* wmall: output packet only if we have decoded some samplesKostya Shishkov2012-03-22
| | | | | Also set CODEC_CAP_DELAY to indicate that decoder may still have some undecoded data left in internal buffer.
* adxenc: use AVCodec.encode2()Justin Ruggles2012-03-21
|