summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* mpeg12: Do not change frame_pred_frame_dct flag and demote error into a warningAnne Aaron2012-04-06
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: remove avcodec_guess_channel_layout()Justin Ruggles2012-04-05
| | | | | It is not public because the header is not installed, and its functionality has been replaced by av_get_default_channel_layout().
* avutil: Add av_get_default_channel_layout()Justin Ruggles2012-04-05
| | | | Also, use the new function in the AC-3 encoder.
* h264: Factorize declaration of mb_sizes array.Diego Biurrun2012-04-05
|
* dsputil x86: use SSE float instruction instead of SSE2 integer equivalentChristophe GISQUET2012-04-04
| | | | | | All the more required since the users are pure SSE functions. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* dsputil x86: remove deprecated parameter from scalarproduct_int16 prototypeChristophe GISQUET2012-04-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* vp8dsp x86: perform rounding shift with a single instructionChristophe GISQUET2012-04-04
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* aacenc: Mark deinterleave_input_samples argument as const.Diego Biurrun2012-04-04
| | | | | This fixes the warning: libavcodec/aacenc.c:524: warning: passing argument 2 of ‘deinterleave_input_samples’ discards qualifiers from pointer target type
* h264: fix 4:2:2 PCM-macroblocks decodingAnton Mitrofanov2012-04-04
| | | | | | Fixes bug 239. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* w32threads: Make pthread_cond_wait follow POSIXDerek Buitenhuis2012-04-04
| | | | | | | | pthread_cond_wait is supposed to return an integer, and indeed does sometimes. Fix its function declaration to match its behavior and POSIX. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* cosmetics: Consistently place static, inline and av_cold attributes/keywords.Diego Biurrun2012-04-04
|
* sbrdsp: Use standard multiple inclusion guards.Diego Biurrun2012-04-04
|
* pcm: K&R formatting cosmeticsAneesh Dogra2012-04-04
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* rawdec: Support fourccs YV16 and YV24Piotr Bandurski2012-04-03
|
* apedec: check bits <= 32.Michael Niedermayer2012-03-31
| | | | | | | | | | Fixes a floating-point exception further down. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com> Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* cavs: Remove unused code.Aneesh Dogra2012-03-31
| | | | | | | The square is always passed as 1 whenever the function is called and thus the if block never gets executed. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* libspeexdec: set frame size in libspeex_decode_init()Justin Ruggles2012-03-30
| | | | This fixes speex decoding, which was broken in 85469f1c.
* smacker audio: sign-extend the initial 16-bit predicted valueFranz Brauße2012-03-30
| | | | | | Fixes Bug #265 Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* h264: drop ff_h264_ prefix from static function ff_h264_decode_rbsp_trailing()Diego Biurrun2012-03-30
|
* h264: Make ff_h264_decode_end() static, it is not used externally.Diego Biurrun2012-03-30
| | | | Also drop the now unnecessary ff_ prefix from its name.
* lzw: fix potential integer overflow.Ronald S. Bultje2012-03-29
|
* truemotion: forbid invalid VLC bitsizes and token values.Ronald S. Bultje2012-03-29
| | | | | | | | | | | | SHOW_UBITS() is only defined up to n_bits is 25, therefore forbid values larger than this in get_vlc2() (max_bits). tokens[][] can be used as an index in deltas[], which has a size of 64, so ensure the values are smaller than that. This prevents crashes on corrupt bitstreams. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* truemotion2: handle out-of-frame motion vectors through edge extension.Ronald S. Bultje2012-03-29
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mp3dec: perform I/S and M/S only when frame mode is joint stereo.Kostya Shishkov2012-03-29
| | | | | | Looks like some LAME versions produce dual stereo mode MP3s with flags for intensity and middle stereo set. In this mode those flags should be ignored like the reference decoder and derived ones do.
* lzw: prevent buffer overreads.Ronald S. Bultje2012-03-28
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* WMAL: Remove inaccurate and unnecessary doxyMashiat Sarker Shakkhar2012-03-29
| | | | | | | | A call to decode_packet() does not always decode a complete WMA packet. Moreover, this is not the correct place to document calls that are part of the public API. Signed-off-by: Diego Biurrun <diego@biurrun.de>
* h264: fix cabac-on-stack after safe cabac reader.Ronald S. Bultje2012-03-28
|
* truemotion2: convert packet header reading to bytestream2.Ronald S. Bultje2012-03-28
| | | | | | | | Also use correct buffer sizes in calls to tm2_read_stream(). Together, this prevents overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* cabac: add overread protection to BRANCHLESS_GET_CABAC().Ronald S. Bultje2012-03-28
| | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind
* cabac: increment jump locations by one in callers of BRANCHLESS_GET_CABAC().Ronald S. Bultje2012-03-28
|
* cabac: remove unused argument from BRANCHLESS_GET_CABAC_UPDATE().Ronald S. Bultje2012-03-28
|
* cabac: use struct+offset instead of memory operand in BRANCHLESS_GET_CABAC().Ronald S. Bultje2012-03-28
|
* h264: add overread protection to get_cabac_bypass_sign_x86().Ronald S. Bultje2012-03-28
|
* h264: reindent get_cabac_bypass_sign_x86().Ronald S. Bultje2012-03-28
|
* h264: use struct offsets in get_cabac_bypass_sign_x86().Ronald S. Bultje2012-03-28
|
* h264: fix overreads in cabac reader.Ronald S. Bultje2012-03-28
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* 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
|