aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
* | libopenjpegdec: always check image because decoding may still failPaul B Mahol2012-03-261-0/+5
| | | | | | | | | | | | | | Fixes bunch of segfaults. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libopenjpegenc: allow changing encoding parametersPaul B Mahol2012-03-261-3/+58
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libopenjpegenc: merge common codePaul B Mahol2012-03-261-24/+0
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libopenjpegenc: use pix_fmt descriptor to get bppPaul B Mahol2012-03-261-9/+2
| | | | | | | | | | | | | | | | This will also simplify adding support for RGB565 and similar. Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libopenjpegenc: use pix_fmt descriptor to get numcompsPaul B Mahol2012-03-261-16/+3
| | | | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Reviewed-by: Michael Bradshaw <mbradshaw@sorensonmedia.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo4: better mv checkMichael Niedermayer2012-03-261-4/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo5: check motion vectors.Michael Niedermayer2012-03-262-1/+11
| | | | | | | | | | | | | | fixes out of frame reading Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | png: fix warning about discarding qualifiers [-Wincompatible-pointer-types]Paul B Mahol2012-03-261-1/+1
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pthread : Remove lock/unlock pairs in worker loop to avoid unexpected state ↵Aaron Colwell2012-03-261-7/+2
| | | | | | | | | | | | | | changes. Reviewed-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-257-2235/+2471
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: x86: dsputil: prettyprint gcc inline asm x86: K&R prettyprinting cosmetics for dsputil_mmx.c x86: conditionally compile H.264 QPEL optimizations dsputil_mmx: Surround QPEL macros by "do { } while (0);" blocks. Ignore generated files below doc/. dpcm: convert to bytestream2. interplayvideo: convert to bytestream2. movenc: Merge if statements h264: fix memleak in error path. pthread: Immediately release all frames in ff_thread_flush() h264: Add check for invalid chroma_format_idc utvideo: port header reading to bytestream2. Conflicts: .gitignore configure libavcodec/h264_ps.c libavcodec/interplayvideo.c libavcodec/pthread.c libavcodec/x86/dsputil_mmx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * x86: dsputil: prettyprint gcc inline asmDiego Biurrun2012-03-251-1295/+1310
| |
| * x86: K&R prettyprinting cosmetics for dsputil_mmx.cDiego Biurrun2012-03-251-773/+1049
| |
| * x86: conditionally compile H.264 QPEL optimizationsDiego Biurrun2012-03-252-6/+14
| |
| * dsputil_mmx: Surround QPEL macros by "do { } while (0);" blocks.Diego Biurrun2012-03-251-4/+12
| | | | | | | | This makes them safe to use in non-fully braced if-blocks and similar.
| * dpcm: convert to bytestream2.Ronald S. Bultje2012-03-241-27/+31
| |
| * interplayvideo: convert to bytestream2.Ronald S. Bultje2012-03-241-199/+124
| |
| * h264: fix memleak in error path.Alexander Strange2012-03-241-1/+1
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * pthread: Immediately release all frames in ff_thread_flush()Alexander Strange2012-03-241-3/+7
| | | | | | | | | | | | | | | | Before this, they were only added to the delayed release queue and not freed until later. This could lead to unnecessary memory use or buffer exhaustion. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * h264: Add check for invalid chroma_format_idcAlexander Strange2012-03-241-1/+5
| | | | | | | | | | | | Fixes a crash when FF_DEBUG_PICT_INFO is used. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * utvideo: port header reading to bytestream2.Ronald S. Bultje2012-03-241-16/+12
| | | | | | | | | | | | | | Fixes crash during slice size reading if slice_end goes negative. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | CrystalHD: Remove EXPERIMENTAL flag for known good formats.Philip Langdale2012-03-251-5/+5
| | | | | | | | | | | | | | | | | | With the flag in place, it's hard to actually use the decoder, and I'm happy with how it works, with the exception of DivX3 where I've never found a sample that worked that I was confident actually matched what the hardware claimed to support. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | pthread: return proper error code on pthread_create failureMarton Balint2012-03-251-1/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | VC1: Do not needlessly use signed types.Reimar Döffinger2012-03-253-17/+17
| | | | | | | | | | | | | | | | | | This might even have prevented the compiler from some optimizations, since both signed and unsigned types are used for the dezigzag tables/ table pointers, and if a branches uses both the compiler needs to create more complex code. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | DV: detect another case of broken DV files.Reimar Döffinger2012-03-251-0/+4
| | | | | | | | | | | | | | See trac issue #217. Only the dsf field seems to be used to distinguish between PAL and NTSC. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | DV: check coded_width/height instead of width/height.Reimar Döffinger2012-03-251-1/+1
| | | | | | | | | | | | | | This makes the workaround also work with lowres. Fixes issue #633. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | vqavideo: fix decoding of samples with no partial updates.Reimar Döffinger2012-03-251-2/+2
| | | | | | | | | | | | | | | | Fixes playback of http://samples.mplayerhq.hu/game-formats/vqa/landsoflore/B0EB8711.VQA (trac issue #710). Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-255-17/+30
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: avc: Add a function for converting mp4 style extradata to annex b pthread: free progress if buffer allocation failed. lavc/avconv: support changing frame sizes in codecs with frame mt. libavformat: Document who sets the AVStream.id field utvideo: mark output picture as keyframe. sunrast: Add support for negative linesize. vp8: fix update_lf_deltas in libavcodec/vp8.c ralf: read Huffman code lengths without GetBitContext Conflicts: ffmpeg.c libavcodec/sunrastenc.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * pthread: free progress if buffer allocation failed.Ronald S. Bultje2012-03-241-0/+4
| | | | | | | | | | | | | | Else we run out of progress variables after a few failed buffer allocations. Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * lavc/avconv: support changing frame sizes in codecs with frame mt.Ronald S. Bultje2012-03-242-9/+4
| | | | | | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
| * utvideo: mark output picture as keyframe.Kostya Shishkov2012-03-241-0/+2
| | | | | | | | Spotted by Антон.
| * sunrast: Add support for negative linesize.Aneesh Dogra2012-03-241-4/+7
| | | | | | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
| * vp8: fix update_lf_deltas in libavcodec/vp8.cJanne Salonen2012-03-241-4/+16
| | | | | | | | | | | | | | | | | | lf_delta.ref[i] and lf_delta.mode[i] were incorrectly reset to 0 if specific delta value was not updated. Fixed to keep the previous value if flag indicates that element in question is not updated. Signed-off-by: Janne Salonen <jsalonen@google.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * ralf: read Huffman code lengths without GetBitContextKostya Shishkov2012-03-241-4/+4
| | | | | | | | | | Those descriptions are stored in nibbles, so they are easy to extract. And this way we don't need to pad tables for possible bit reader overreads.
* | libaacplus: switch to encode2()Paul B Mahol2012-03-241-16/+24
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | adxenc: fix error in merging from qatarPaul B Mahol2012-03-241-3/+2
| | | | | | | | | | | | | | Pointed out by FATE. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | sonic: mark as experimentalPaul B Mahol2012-03-241-1/+3
| | | | | | | | | | Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo5dec: Make sure we have had a valid gop header.Michael Niedermayer2012-03-241-1/+5
| | | | | | | | | | | | | | This prevents decoding happening on a half initialized context. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | truemotion2dec: Fix overread of input.Michael Niedermayer2012-03-241-1/+6
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cavsdec: check stc in decode_slice_header()Michael Niedermayer2012-03-241-0/+4
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | h264: move resolution change check further up.Michael Niedermayer2012-03-241-10/+15
| | | | | | | | | | | | | | | | This prevents some variables from being changed in case of a rejected resolution change. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | alsdec: check opt_order.Michael Niedermayer2012-03-241-0/+4
| | | | | | | | | | | | | | Fixes out of array write in quant_cof Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpegvideo: increase buffer sizes.Michael Niedermayer2012-03-241-2/+2
| | | | | | | | | | | | | | Fixes buffer overflow Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo4: Fix global array overread.Michael Niedermayer2012-03-241-0/+4
| | | | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Fix linking without yasm.Carl Eugen Hoyos2012-03-241-4/+6
| |
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-245-15/+56
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: rv34: error out on size changes with frame threading aacsbr: Add a debug check to sbr_mapping. aac: Reset some state variables when turning SBR off aac: Reset PS parameters on header decode failure. fate: add wmalossless test. aacsbr: handle m_max values smaller than 4. Conflicts: libavcodec/aacsbr.c tests/fate/lossless-audio.mak Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * rv34: error out on size changes with frame threadingJanne Grunau2012-03-231-0/+7
| |
| * aacsbr: Add a debug check to sbr_mapping.Alex Converse2012-03-231-7/+17
| | | | | | | | | | | | | | | | There have been multiple bugs caused by inconsistencies here. Based on an idea from Michael Niedermayer. CC: libav-stable@libav.org
| * aac: Reset some state variables when turning SBR offAlex Converse2012-03-232-7/+27
| | | | | | | | | | | | | | | | This makes sure the reset flag gets set when SBR gets turned back on and sets control variables for unguided mode back to their defaults. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * aac: Reset PS parameters on header decode failure.Alex Converse2012-03-231-0/+4
| | | | | | | | | | | | | | | | If the next header frame codes zero envelopes the previous frame's values will be used. Consequently the invalid values must be cleared. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * aacsbr: handle m_max values smaller than 4.Ronald S. Bultje2012-03-231-0/+1
| | | | | | | | | | | | | | | | Prevents a signflip in the counter, and a subsequent crash because of overreads/overwrites. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org