summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
* Drop some pointless void* return value casts from av_malloc() invocations.Diego Biurrun2012-01-022-4/+4
|
* wavpack: fix typos in previous cosmetic clean-up commitJustin Ruggles2012-01-021-2/+2
|
* wavpack: cosmetics: K&R pretty-printingJustin Ruggles2012-01-021-322/+337
|
* wavpack: determine sample_fmt before requesting a bufferHendrik Leppkes2012-01-011-13/+18
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* bmv audio: implement new audio decoding APIJustin Ruggles2012-01-011-9/+25
|
* mpegaudiodec: skip all channels when skipping granulesJustin Ruggles2012-01-011-8/+11
| | | | | Also fix calculation of new position when switching buffers. This fixes "overread" error messages when seeking.
* bfi: K&R cosmeticsAneesh Dogra2012-01-011-11/+12
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* bgmc: K&R cleanupAneesh Dogra2012-01-011-6/+6
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rawdec: propagate pict_type information to the output frameStefano Sabatini2012-01-011-0/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rawdec: Support more QT 1bpp rawvideo files.Piotr Bandurski2012-01-011-0/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* threads: limit the number of automatic threads to MAX_AUTO_THREADSJanne Grunau2012-01-011-5/+9
| | | | | | The extra thread added in {frame_}*thread_init was not taken into account. Explicitly sets thread_count to 1 if only one CPU core was detected. Also fixes two typos in comments.
* threads: set thread_count to 1 when thread support is disabledJanne Grunau2012-01-011-0/+2
|
* threads: introduce CODEC_CAP_AUTO_THREADS and add it to libx264Janne Grunau2012-01-014-2/+9
| | | | | | Some external codecs have their own code to determine the best number of threads. This number is not necessary the number of cpu cores. Thread_count will be only 0 if the codec has CODEC_CAP_AUTO_THREADS.
* mpegaudiodec: fix seeking.Ronald S. Bultje2011-12-311-16/+18
| | | | | | | | | The safe bitstream reader does not allow using skip_bits_long() to seek to a point before the start of the buffer, which was needed by the mp3 decoder. This change instead calculates the start point of the first valid granule and skips to that position. Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* mpegaudiodec: fix compilation when testing the unchecked bitstream readerJustin Ruggles2011-12-311-1/+1
|
* threads: add sysconf based number of CPUs detectionJanne Grunau2011-12-311-0/+7
| | | | Can act as fallback and should work on a couple of Unix systems.
* threads: always include necessary headers for number of CPUs detectionJanne Grunau2011-12-311-2/+4
| | | | | | Since the conditions for the actual usage are more specific a less preferred method can be used. This would cause compilation errors because necessary headers are not included.
* threads: default to automatic thread count detectionJanne Grunau2011-12-312-2/+2
|
* cook: K&R formatting cosmeticsShitiz Garg2011-12-311-364/+366
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* cosmetics: Drop unnecessary parentheses around return values.Diego Biurrun2011-12-308-27/+27
|
* libvorbis: K&R reformatting cosmeticsDiego Biurrun2011-12-291-73/+79
|
* libmp3lame: K&R formatting cosmeticsAneesh Dogra2011-12-291-89/+84
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* mpegvideo_enc: K&R cosmetics (line 1000-2000).Aneesh Dogra2011-12-291-394/+531
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* indeo4: remove two unused variablesKostya Shishkov2011-12-291-4/+7
|
* lagarith: add decode support for arith rgb24 modeThad Ward2011-12-291-10/+22
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* v410dec: Check for sufficient input data. Fixes crashMichael Niedermayer2011-12-281-0/+5
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* Indeo 4 decoderKostya Shishkov2011-12-287-3/+1362
| | | | Signed-off-by: Kostya Shishkov <kostya.shishkov@gmail.com>
* mpegvideo_enc: K&R cosmeticsAneesh Dogra2011-12-271-439/+580
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* threads: test for sys/param.h and include it for sysctl on OpenBSDJanne Grunau2011-12-271-0/+3
|
* x86: Fix constraints for decode_significance*_x86Martin Storsjö2011-12-272-3/+3
| | | | | | | | | | | | | | | | | | | Originally, prior to 8742a4ff8, the caller code was compiled within this condition: ARCH_X86 && HAVE_7REGS && HAVE_EBX_AVAILABLE && !defined(BROKEN_RELOCATIONS) Since HAVE_7REGS is defined as (ARCH_X86_64 || (HAVE_EBX_AVAILABLE && HAVE_EBP_AVAILABLE)) the subcondition HAVE_7REGS && HAVE_EBX_AVAILABLE is equal to HAVE_7REGS (for 32 bit at least). The correct simplification of the original condition thus is HAVE_7REGS, not HAVE_EBX_AVAILABLE. This fixes compilation in some cases where HAVE_EBP_AVAILABLE = 0 and HAVE_EBX_AVAILABLE = 1. Signed-off-by: Martin Storsjö <martin@martin.st>
* avs: call release_buffer() at the end.Anton Khirnov2011-12-251-0/+10
| | | | Fixes a memleak.
* Add minor bumps and APIchanges entries for lavc/lavfi changes.Anton Khirnov2011-12-251-1/+1
|
* mpegvideo.c: K&R formatting and cosmetics.Konstantin Todorov2011-12-251-542/+665
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* lavc: add format field to AVFrameStefano Sabatini2011-12-253-0/+14
| | | | | | The format is a per-frame property, having it in AVFrame simplify the operation of extraction of that information, since avoids the need to access the codec/stream context.
* lavc: add width and height fields to AVFrameStefano Sabatini2011-12-253-0/+11
| | | | | | width and height are per-frame properties, setting these values in AVFrame simplify the operation of extraction of that information, since avoids the need to check the codec/stream context.
* lavc: add a sample_aspect_ratio field to AVFrameStefano Sabatini2011-12-253-0/+10
| | | | | | | The sample aspect ratio is a per-frame property, so it makes sense to define it in AVFrame rather than in the codec/stream context. Simplify application-level sample aspect ratio information extraction, and allow further simplifications.
* vp3dec: Check coefficient index in vp3_dequant()Reinhard Tartler2011-12-231-2/+12
| | | | | | | | | Based on a patch by Michael Niedermayer <michaelni@gmx.at> Fixes NGS00145, CVE-2011-4352 Found-by: Phillip Langlois Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* svq1dec: call avcodec_set_dimensions() after dimensions changed.Michael Niedermayer2011-12-231-0/+1
| | | | | | | Fixes NGS00148, CVE-2011-4579 Found-by: Phillip Langlois Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* threads: check defines before using them in automatic thread detectionJanne Grunau2011-12-231-2/+2
|
* pthread: include sys/types.h before sys/sysctl.hJanne Grunau2011-12-231-1/+1
| | | | Fixes compilation on FreeBSD with clang 3.
* 4xm: remove unused variables.Anton Khirnov2011-12-231-3/+0
|
* h264: Fix a possible overread in decode_nal_units()Alexander Strange2011-12-231-1/+1
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* w32thread: call ResetEvent() in pthread_cond_broadcast().Sergey Radionov2011-12-221-1/+2
| | | | | | | Also add "volatile" to broadcast flag (since it is used from multiple threads). Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* kvmc: fix invalid readsGaurav Narula2011-12-231-16/+66
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* 4xm: Add a check in decode_i_frame to prevent buffer overreadsShitiz Garg2011-12-221-3/+12
| | | | | | Fixes bugzilla #135 Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* adpcm: fix IMA SMJPEG decodingPaul B Mahol2011-12-221-5/+9
| | | | Signed-off-by: Janne Grunau <janne-libav@jannau.net>
* options: set minimum for "threads" to zeroJanne Grunau2011-12-221-1/+2
| | | | | A negative number of threads does not make sense and 0 is used for autodetection. Adds a symbolic name for autodetection.
* bsd: use number of logical CPUs as automatic thread countJanne Grunau2011-12-221-0/+10
|
* windows: use number of CPUs as automatic thread countJanne Grunau2011-12-221-0/+6
|
* linux: use number of CPUs as automatic thread countJanne Grunau2011-12-221-0/+43
| | | | | | Use sched_getaffinity to determine the number of logical CPUs. Limits the number of threads to 16 since slice threading of H.264 seems to be buggy with more than 16 threads.
OpenPOWER on IntegriCloud