summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-06
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (28 commits) dfa: use more meaningful return codes eatgv: check vector_bits eatgv: check motion vectors Mark a number of variables only used in av_dlog() calls as av_unused. dvdec: drop const qualifier from variable to eliminate a warning avcodec: Improve comment for thread_safe_callbacks to avoid misinterpretation. tests/utils: don't ignore the return value of fwrite() lavfi/formats: use sizeof(var) instead of sizeof(type). lavfi: remove avfilter_default_config_input_link() declaration lavfi: always enable the scale filter and depend on sws. vf_split: support user-specifiable number of outputs. avconv: remove stray useless comment. mpegmux: add stuffing to avoid incomplete PCM frames rtsp: avoid const warnings from strtol() call avserver: check return value of ftruncate() lagarith: make offset array type unsigned dfa: add some checks to ensure that decoder won't write past frame end aacps: NEON optimisations aacps: align some arrays aacps: move some loops to function pointers ... Conflicts: configure doc/filters.texi libavcodec/dfa.c libavcodec/eatgv.c libavfilter/Makefile libavfilter/allfilters.c libavfilter/avfilter.h libavfilter/formats.c libavfilter/vf_split.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>
* | CrystalHD: Improve detection of field pair -> two fields content.Philip Langdale2012-05-06
| | | | | | | | | | | | | | | | | | | | Istvan Sebok provided a sample where field pair -> two fields content was being misdetected by the existing logic. I added an additional test to check the input picture type as identified by our h.264 parser. Signed-off-by: Philip Langdale <philipl@overt.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: tests: Refactor rotozoom/videogen common code into a separate file. tests: Mark some file-internal symbols as static. build: Drop leftover .exp pattern from LIBSUFFIXES list. vsrc_buffer: return EAGAIN if no frame is available. WMAL: Shift output samples by the specified number of padding zeroes. WMAL: Restore removed code in mclms_predict() rtpdec_h264: Remove a useless ifdef rtpdec_h264: Remove outdated/useless/incorrect comments rtpdec_h264: Remove useless memory corruption checks rtpdec_h264: Return proper error codes rtpdec_h264: Check the available data length before reading rtpdec_h264: Add input size checks png: check bit depth for PAL8/Y400A pixel formats. ea: check chunk_size for validity. celp filters: Do not read earlier than the start of the 'out' vector. Conflicts: libavcodec/pngdec.c libavfilter/src_buffer.c tests/rotozoom.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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
* | Remove unused variable from ffv1 decoder.Carl Eugen Hoyos2012-05-05
| |
* | alsdec.c: Also test 0 when checking rice decoder values.Carl Eugen Hoyos2012-05-05
| | | | | | | | Suggested-by: Thilo Borgmann
* | alsdec.c: Simplify error check before calling rice decoder.Carl Eugen Hoyos2012-05-05
| | | | | | | | Reviewed-by: Thilo Borgmann
* | png_parser: try to fix big endianMichael Niedermayer2012-05-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | vorbis_parser: fix blocksizeMichael Niedermayer2012-05-05
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | oggvorbis: move handling of first packets ts from parser to muxer.Michael Niedermayer2012-05-05
| | | | | | | | | | | | | | The parser does not have enough knowledge it seems to do it correctly. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-05
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: configure: add POWER[5-7] support arm: intreadwrite: revert 16-bit load asm to old version for gcc < 4.6 vqavideo: return error if image size is not a multiple of block size cosmetics: indentation avformat: only fill-in interpolated timestamps if duration is non-zero avformat: remove a workaround for broken timestamps Conflicts: libavformat/utils.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>
* | oggvorbisdec: redesign special handling of first frames timestamp.Michael Niedermayer2012-05-04
| | | | | | | | | | | | This also will make it possible to use the code for cases other than the start of a stream Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix a few @file doxy inconsistencies.Clément Bœsch2012-05-04
| |
* | png_parserPeter Holik2012-05-04
| | | | | | | | | | | | | | This adds support for png image2pipe streaming Update to latest git by: Eugene Ware <eugene@noblesamurai.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | zerocodec: check if there is previous framePaul B Mahol2012-05-04
| | | | | | | | | | | | Fixes crash in bug #1219. Signed-off-by: Paul B Mahol <onemda@gmail.com>
* | shorten: unsigned 8bit supportPaul B Mahol2012-05-04
| |
* | Merge https://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-EncoderMichael Niedermayer2012-05-03
|\ \ | | | | | | | | | | | | | | | | | | * https://github.com/mjbshaw/FFmpeg-OpenJPEG-J2K-Encoder: libopenjpegdec: respect JP2 color space, fix ticket 1179 Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * | libopenjpegdec: respect JP2 color space, fix ticket 1179Michael Bradshaw2012-05-03
| | | | | | | | | | | | Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
* | | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-03
|\ \ \ | |/ / |/| / | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: mpeg12: fixed parsing in some mpeg2 streams Add SMPTE240M transfer characteristics flag. mpegts: Some additional HDMV types and reg descriptors for mpegts motionpixels: Clip YUV values after applying a gradient. jpeg: handle progressive in second field of interlaced. ituh263dec: Implement enough of Annex O (scalability) to fix a FPE. h263: more strictly forbid frame size changes with frame-mt. h264: additional protection against unsupported size/bitdepth changes. tta: prevents overflows for 32bit integers in header. configure: remove malloc_aligned. vp8: update frame size changes on thread context switches. snowdsp: explicitily state instruction size. wmall: fix reconstructing audio with uncoded channels WMAL cosmetics: fix indentation gitignore: add Win32 library suffixes Conflicts: configure libavcodec/h263dec.c libavcodec/h264.c libavcodec/ituh263dec.c libavcodec/mjpegdec.c libavcodec/wmalosslessdec.c libavcodec/x86/snowdsp_mmx.c libavformat/mpegts.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>
* | JACOsub demuxer, decoder and muxer.Clément Bœsch2012-05-03
| |
* | lavc: implement accessors for some AVFrame fields.Nicolas George2012-05-03
| | | | | | | | | | | | | | | | | | Compared to av_opt_ptr, accessors bring: - better performance (negligible); - compile-time type check; - link-time existence check (or at worst, a dynamic linker error instead of a NULL dereference).
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-05-02
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: arm: intreadwrite: disable inline asm for gcc 4.7 and later arm: intreadwrite: fix inline asm constraints for gcc 4.6 and later indeo3: fix motion vector validation pcm_bluray: set bits_per_raw_sample for > 16-bit twinvq: fix out of bounds array access lavr: use 8.8 instead of 10.6 as the 16-bit fixed-point mixing coeff type Conflicts: doc/APIchanges libavcodec/indeo3.c libavcodec/pcm-mpeg.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * 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>