summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* dv: simplify bitstream splicing in dv_decode_ac()Mans Rullgard2011-11-26
| | | | | | This is simpler and fixes some overflow checker warnings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* s3tc: fix shift overflow by using unsigned constantMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq1enc: fix signed multiplication overflowMans Rullgard2011-11-26
| | | | | | | | This multiplication can overflow the signed range but not the unsigned. After right-shifting it will thus fit in the signed range again. Signed-off-by: Mans Rullgard <mans@mansr.com>
* svq1dec: use sign_extend()Mans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rv34: fix signed multiplication overflowMans Rullgard2011-11-26
| | | | | | | Multiply by unsigned 0x01010101 to replicate bytes into 32-bit word. Signed-off-by: Mans Rullgard <mans@mansr.com>
* [PATCH] Fix crash when initializing multi-threaded decoding for corrupted file.Cheng Sun2011-11-26
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* sol: use AV_RL32 instead of raw pointer castMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* cook: use a table for xor key rotationMans Rullgard2011-11-26
| | | | | | | This is simpler and avoids an invalid shift by 32 in the aligned case. Signed-off-by: Mans Rullgard <mans@mansr.com>
* apedec: fix signed integer overflowsMans Rullgard2011-11-26
| | | | | | | This bit manipulation is equivalent but avoids undefined shifts and overflows. Signed-off-by: Mans Rullgard <mans@mansr.com>
* qtrle: simplify 32-bit decode using intreadwrite macrosMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* gif: fix invalid signed shiftsMans Rullgard2011-11-26
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* rtjpeg: simplify get_block() by using get_bits_left.Reimar Döffinger2011-11-26
| | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rtjpeg: check get_block return value for error.Reimar Döffinger2011-11-26
| | | | | | This avoids crashes due to reading out-of-bounds. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nuv: check per-frame header for validity.Reimar Döffinger2011-11-26
| | | | | | | Since it contains dimensions parsing an invalid one has rather annoying effects. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* nuv: use FFALIGN.Reimar Döffinger2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* flicvideo: check extradata_size before accessing extradata.Carl Eugen Hoyos2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* fraps: check for overread.Michael Niedermayer2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* cook: fix apparent typo in extradata parsingK.Y.H2011-11-26
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: update doxy to use nondeprecated API.Anton Khirnov2011-11-26
|
* swscale: Readd #define _SVID_SOURCEMartin Storsjö2011-11-25
| | | | | | | | | | | | | | | | | This was removed erroneously in 046f081b46c8479820409cf8f530b988221bd15b. This define still is necessary for getting MAP_ANONYMOUS defined on linux/glibc, despite the define reshuffling done in that commit. Without MAP_ANONYMOUS defined, the mprotect calls for setting the generated mmx2 scaler code pages executable are left out, causing crashes if that codepath is chosen. This patch fixes scaling from 192x144 to 320x240 with -sws_flags fast_bilinear, which crashes on linux at the moment. Signed-off-by: Martin Storsjö <martin@martin.st>
* Fix av_get_channel_layout_string() for positions >31Mans Rullgard2011-11-25
| | | | | | | | | | A value shifted left by >31 needs to have a 64-bit type. As there are no defined channels in this range, the fix is purely theoretical at this point, although it does avoid some invalid shifts triggering the overflow checker. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: Store vda lib flags in extralibs instead of ldflagsRafaël Carré2011-11-25
| | | | | | This way the needed linking flags end up in libavcodec.pc. Signed-off-by: Martin Storsjö <martin@martin.st>
* Make channel layout masks unsignedMans Rullgard2011-11-25
| | | | | | | | | | It makes more sense for a bit mask to use an unsigned type. The change should be source and binary compatible on all supported systems, hence micro version bump. Fixes a few invalid shifts. Signed-off-by: Mans Rullgard <mans@mansr.com>
* dca: ARMv6 optimised decode_blockcode()Mans Rullgard2011-11-25
| | | | | | | | | This is a hand-tuned version of the code with impossible parts of the FASTDIV function ommitted. 2-5% faster overall on Cortex-A8. Signed-off-by: Mans Rullgard <mans@mansr.com>
* nullenc: drop AVFMT_RAWPICTURE from the flagsLuca Barbato2011-11-25
| | | | | This makes the two pass encoding with x264 working with -f null - as first pass.
* frame-mt: return consumed packet size in ff_thread_decode_frameJanne Grunau2011-11-25
| | | | | This is required to fulfill avcodec_decode_video2() promise to return the number of consumed bytes on success.
* aacdec: add more fate tests covering SBR and PSJanne Grunau2011-11-25
| | | | | | Add all seven test bitstreams of Coding Technologies "aacPlus Decoder Check Package". The streams cover different ways to signal SBR and PS in different formats.
* MK(BE)TAG: avoid undefined shiftsMans Rullgard2011-11-25
| | | | | | | | Casting the left-most byte to unsigned avoids an undefined result of the shift by 24 if bit 7 is set. This affects the rm demuxer. Signed-off-by: Mans Rullgard <mans@mansr.com>
* snow: split snow in snowdec and snowencLuca Barbato2011-11-24
| | | | | The common non inlined code goes in snow.c, the common inlined code in snow.h, tables move in snowdata.h (included only by snow.c)
* tiffenc: deprecate using compression_levelAnton Khirnov2011-11-24
|
* swscale: fix failing fate tests.Ronald S. Bultje2011-11-24
| | | | isGray() is left as a FIXME for later.
* swscale: add support for planar RGB input.Ronald S. Bultje2011-11-24
|
* h264: add support for decoding planar RGB images.Ronald S. Bultje2011-11-24
|
* Clean up swscale pixfmt macros using av_pix_fmt_descriptors[].Ronald S. Bultje2011-11-24
|
* pixfmt: add planar RGB formats.Ronald S. Bultje2011-11-24
|
* libavutil: add utility functions to simplify allocation of audio buffers.Justin Ruggles2011-11-23
| | | | Based on code by Stefano Sabatini.
* libavutil: add planar sample formats and av_sample_fmt_is_planar()Justin Ruggles2011-11-23
|
* avconv: fix segfault at EOF with delayed picturesJanne Grunau2011-11-24
| | | | | | At EOF it makes no sense to modify avpkt.{data,size} in output_packet since no data is consumed. Frame threading with more than 1 threads hits the segfault.
* pcmdec: remove unneeded resetting of samples pointerJustin Ruggles2011-11-23
|
* avconv: remove a now unused parameter from output_packet().Anton Khirnov2011-11-23
|
* avconv: formatting fixes in output_packet()Anton Khirnov2011-11-23
|
* avconv: declare some variables in blocks where they are usedAnton Khirnov2011-11-23
|
* avconv: use the same behavior when decoding audio/video/subsAnton Khirnov2011-11-23
| | | | | | | I.e. if the packet was only partially consumed, pass the rest of it into the decoder again. Also simplify the code so it's the same for video/audio/subs.
* bethsoftvideo: return proper consumed size for palette packets.Anton Khirnov2011-11-23
| | | | Also check for sufficient packet size.
* cdg: skip packets that don't contain a cdg command.Justin Ruggles2011-11-23
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* crcenc: add flagsAnton Khirnov2011-11-23
| | | | | | | | | | AVFMT_NOTIMESTAMPS for crc, as it ignores the timestamps. AVFMT_VARIABLE_FPS for framecrc, as it prints dts. Many FATE changes, because avconv is no longer duplicating frames in those tests. Also added -vsync 0 for some tests to prevent avconv from dropping frames until it can be fixed more properly.
* avconv: use vsync 0 for AVFMT_NOTIMESTAMPS formats.Anton Khirnov2011-11-23
| | | | | Prevent avconv from duplicating or dropping frames for formats where it makes even less sense than usual, e.g. image2.
* tiffenc: add a private option for selecting compression algorithmAnton Khirnov2011-11-23
|
* md5enc: add flagsAnton Khirnov2011-11-23
| | | | | | | | | AVFMT_NOTIMESTAMPS for md5, as it ignores the timestamps. AVFMT_VARIABLE_FPS for framemd5, as it prints dts. -vsync 0 for the vp8 test is needed because with vsync 2 the timestamp guessing code gets confused by an altref frame that is never displayed and drops a frame later.
* ARM: remove needless .text/.align directivesMans Rullgard2011-11-23
| | | | | | | The 'function' macro already includes the appropriate directives. Signed-off-by: Mans Rullgard <mans@mansr.com>