summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* frwu: Employ more meaningful return values.Paul B Mahol2012-02-01
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* fraps: Use av_fast_padded_malloc() instead of av_realloc()Reimar Döffinger2012-02-01
| | | | | | Ensures alignment and avoids using uninitialized data. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mjpegdec: use av_fast_padded_malloc()Reimar Döffinger2012-02-01
| | | | | | also check for allocation failure Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* eatqi: use av_fast_padded_malloc()Reimar Döffinger2012-02-01
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* asv1: use av_fast_padded_malloc()Reimar Döffinger2012-02-01
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* avcodec: Add av_fast_padded_malloc().Janne Grunau2012-02-01
| | | | | | | Wrapper around av_fast_malloc() that keeps FF_INPUT_BUFFER_PADDING_SIZE zero-padded bytes at the end of the used buffer. Based on a patch by Reimar Döffinger <Reimar.Doeffinger@gmx.de>.
* swscale: enable dithering in MMX functions.Ronald S. Bultje2012-02-01
| | | | | | This was accidently disabled. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: make rgb24 function macros slightly smaller.Ronald S. Bultje2012-02-01
|
* avcodec.h: Remove some disabled cruft.Diego Biurrun2012-02-01
|
* swscale: remove obsolete comment.Ronald S. Bultje2012-02-01
|
* swscale-test: Drop unused argc and argv arguments from main().Diego Biurrun2012-02-01
|
* zmbv: Employ more meaningful return values.Paul B Mahol2012-02-01
| | | | | | | Also use av_log_ask_for_sample() where it makes sense. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* zmbvenc: Employ more meaningful return values.Paul B Mahol2012-02-01
| | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>
* vc1: prevent null pointer dereference on broken filesJanne Grunau2012-02-01
| | | | CC: libav-stable@libav.org
* zmbv: check av_realloc() return values and avoid memleaks on ENOMEMJanne Grunau2012-02-01
|
* truespeech: align bufferPaul B Mahol2012-01-31
| | | | | | DSPContext.bswap_buf() requires aligned output Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* ac3: Do not read past the end of ff_ac3_band_start_tab.Mans Rullgard2012-01-31
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Alex Converse <alex.converse@gmail.com>
* dv: Fix small stack overread related to CVE-2011-3929 and CVE-2011-3936.Alex Converse2012-01-31
| | | | | | | Found with asan. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Alex Converse <alex.converse@gmail.com>
* dv: Fix null pointer dereference due to ach=0Michael Niedermayer2012-01-31
| | | | | | | | | | | dv: Fix null pointer dereference due to ach=0 Fixes part2 of CVE-2011-3929 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Reviewed-by: Roman Shaposhnik <roman@shaposhnik.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Alex Converse <alex.converse@gmail.com>
* dv: check stypeMichael Niedermayer2012-01-31
| | | | | | | | | | | | dv: check stype Fixes part1 of CVE-2011-3929 Possibly fixes part of CVE-2011-3936 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Reviewed-by: Roman Shaposhnik <roman@shaposhnik.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Alex Converse <alex.converse@gmail.com>
* fate-golomb: extend golomb-test to get_ue_golomb_long()Janne Grunau2012-02-01
| | | | | | | | get_ue_golomb_long() is only tested for values up to 2^15 - 2 since we can not write larger values. Silence the test on success and return a non-zero value on error. Use an heap scratch buffer instead of large stack buffer. Remove unneeded includes.
* swfdec: Simplify sample rate calculation.Alex Converse2012-01-31
|
* fate: add golomb-testDiego Biurrun2012-01-31
|
* golomb-test: K&R formatting cosmeticsDiego Biurrun2012-01-31
|
* h264: Split h264-test off into a separate file - golomb-test.c.Diego Biurrun2012-01-31
| | | | The new name is more appropriate as only golomb functions are tested.
* h264-test: cleanup: drop timer invocations, commented out code and other cruftDiego Biurrun2012-01-31
|
* h264-test: Remove unused DSP and AVCodec contexts and related init calls.Diego Biurrun2012-01-31
| | | | This also avoids a segfault on startup.
* adpcm: Add missing stdint.h #include to fix standalone header compilation.Diego Biurrun2012-01-31
|
* lavf: add functions for accessing the fourcc<->CodecID mapping tables.Anton Khirnov2012-01-31
| | | | Fixes bug 212.
* lavc: set AVCodecContext.codec in avcodec_get_context_defaults3().Anton Khirnov2012-01-31
| | | | | | | | | This way, if the AVCodecContext is allocated for a specific codec, the caller doesn't need to store this codec separately and then pass it again to avcodec_open2(). It also allows to set codec private options using av_opt_set_* before opening the codec.
* lavc: make avcodec_close() work properly on unopened codecs.Anton Khirnov2012-01-31
| | | | | I.e. free the priv_data and other stuff allocated in avcodec_alloc_context3() and not segfault.
* lavc: add avcodec_is_open().Anton Khirnov2012-01-31
| | | | | | | It allows to check whether an AVCodecContext is open in a documented way. Right now the undocumented way this check is done in lavf/lavc is by checking whether AVCodecContext.codec is NULL. However it's desirable to be able to set AVCodecContext.codec before avcodec_open2().
* lavf: rename AVInputFormat.value to raw_codec_id.Anton Khirnov2012-01-31
| | | | It's only used by raw demuxers for storing the codec id.
* lavf: remove the pointless value field from flv and iv8Anton Khirnov2012-01-31
| | | | The demuxers don't use it in any way.
* lavc/lavf: remove unnecessary symbols from the symbol version script.Anton Khirnov2012-01-31
|
* lavc: reorder AVCodec fields.Anton Khirnov2012-01-31
| | | | | | | Put all private fields at the end and mark them as such so they can be easily changed/removed. This breaks ABI.
* lavf: reorder AVInput/OutputFormat fields.Anton Khirnov2012-01-31
| | | | | | | Put all private fields at the end and mark them as such so they can be easily changed/removed. This breaks ABI.
* mp3dec: Fix a heap-buffer-overflowAlex Converse2012-01-30
| | | | | | | | In some cases, what is left to read from ptr is smaller than EXTRABYTES. Based on a patch by Thierry Foucu <tfoucu@gmail.com>. Signed-off-by: Alex Converse <alex.converse@gmail.com>
* adpcmenc: remove some unneeded castsJustin Ruggles2012-01-30
|
* adpcmenc: use int16_t and uint8_t instead of short and unsigned char.Justin Ruggles2012-01-30
|
* adpcmenc: fix adpcm_ms extradata allocationJustin Ruggles2012-01-30
| | | | | | Add FF_INPUT_BUFFER_PADDING_SIZE. If allocation fails, also free memory which was allocated previously in adpcm_encode_init().
* adpcmenc: return proper AVERROR codes instead of -1Justin Ruggles2012-01-30
|
* adpcmenc: check for coded_frame allocation failureJustin Ruggles2012-01-30
|
* adpcmenc: Do not set coded_frame->key_frame.Justin Ruggles2012-01-30
| | | | It is already set in avcodec_alloc_frame().
* mpc7: check for allocation failureJustin Ruggles2012-01-30
|
* mpc7: align local temp bufferJustin Ruggles2012-01-30
| | | | DSPContext.bswap_buf() requires aligned output
* rv40: x86 SIMD for biweightChristophe Gisquet2012-01-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Provide MMX, SSE2 and SSSE3 versions, with a fast-path when the weights are multiples of 512 (which is often the case when the values round up nicely). *_TIMER report for the 16x16 and 8x8 cases: C: 9015 decicycles in 16, 524257 runs, 31 skips 2656 decicycles in 8, 524271 runs, 17 skips MMX: 4156 decicycles in 16, 262090 runs, 54 skips 1206 decicycles in 8, 262131 runs, 13 skips MMX on fast-path: 2760 decicycles in 16, 524222 runs, 66 skips 995 decicycles in 8, 524252 runs, 36 skips SSE2: 2163 decicycles in 16, 262131 runs, 13 skips 832 decicycles in 8, 262137 runs, 7 skips SSE2 with fast path: 1783 decicycles in 16, 524276 runs, 12 skips 711 decicycles in 8, 524283 runs, 5 skips SSSE3: 2117 decicycles in 16, 262136 runs, 8 skips 814 decicycles in 8, 262143 runs, 1 skips SSSE3 with fast path: 1315 decicycles in 16, 524285 runs, 3 skips 578 decicycles in 8, 524286 runs, 2 skips This means around a 4% speedup for some sequences. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* x86: Give RV40 init file a more suitable name.Diego Biurrun2012-01-30
|
* x86: Place mm_flags variable declaration below the appropriate #ifdef.Diego Biurrun2012-01-30
| | | | This fixes some unused variable warnings with YASM disabled.
* movdec: Ignore sample_degradation_priority bits when checking first_sample_flagsMartin Storsjö2012-01-31
| | | | | | | | | | | This makes the first packet of a track fragment run to get the keyframe flag set properly if sample_degradation_priority is nonzero. This makes the keyframes flag be set properly for ismv files created by Microsoft. Signed-off-by: Martin Storsjö <martin@martin.st>