summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* vc1dec: Fix vc1 decoding with --disable-optimizations.Michael Niedermayer2012-03-13
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Move struc FFTContext below SECTION_RODATANico Weber2012-03-12
| | | | | | | | | | | | | Yasm creates an implicit unaligned text section if "struc" is used outside of any section: http://tortall.lighthouseapp.com/projects/78676-yasm/tickets/247 Since yasm only honors the "align" annotation on the first declaration of a section, this implicit text section causes all text section alignments to be ignored. Also fixes a yasm warning about it agnoring alignment. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dxva2_vc1: pass the overlap flag to the decoderHendrik Leppkes2012-03-12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* dxva2_vc1: fix decoding of BI framesHendrik Leppkes2012-03-12
| | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* iff: check for pbm tagami_stuff2012-03-12
| | | | | | more robust Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-12
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: dsicinvideo: validate buffer offset before copying pixels. cook: error out on quant_index values outside [-63, 63] range. mpc: pad mpc_CC/SCF[] tables to allow for negative indices. Conflicts: libavcodec/cook.c libavcodec/dsicinav.c libavcodec/mpc.c libavcodec/mpc7.c libavcodec/mpcdata.h Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * dsicinvideo: validate buffer offset before copying pixels.Ronald S. Bultje2012-03-11
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * cook: error out on quant_index values outside [-63, 63] range.Ronald S. Bultje2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * mpc: pad mpc_CC/SCF[] tables to allow for negative indices.Ronald S. Bultje2012-03-10
| | | | | | | | | | | | | | | | MPC8 allows indices of mpc_CC up to -1, and mpc_SCF up to -6, thus pad the tables by that much on the left end. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | alsdec: Fix out of ltp_gain_values read.Thilo Borgmann2012-03-11
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | alsdec: pretty print for another log messageThilo Borgmann2012-03-11
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-11
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: cook: expand dither_tab[], and make sure indexes into it don't overflow. xxan: reindent xan_unpack_luma(). xxan: protect against chroma LUT overreads. xxan: convert to bytestream2 API. xxan: don't read before start of buffer in av_memcpy_backptr(). vp8: convert mbedge loopfilter x86 assembly to use named arguments. vp8: convert inner loopfilter x86 assembly to use named arguments. Conflicts: libavcodec/xxan.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cook: expand dither_tab[], and make sure indexes into it don't overflow.Ronald S. Bultje2012-03-10
| | | | | | | | | | | | | | Fixes overflows in accessing dither_tab[]. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * xxan: reindent xan_unpack_luma().Ronald S. Bultje2012-03-10
| | | | | | | | It used 3-space indent instead of 4-space indent.
| * xxan: protect against chroma LUT overreads.Ronald S. Bultje2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * xxan: convert to bytestream2 API.Ronald S. Bultje2012-03-10
| | | | | | | | | | | | | | Protects against overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * xxan: don't read before start of buffer in av_memcpy_backptr().Ronald S. Bultje2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * vp8: convert mbedge loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-10
| |
| * vp8: convert inner loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-10
| |
* | vc1: add missing entries to ff_vc1_fps_nr.Michael Niedermayer2012-03-10
| | | | | | | | | | | | | | Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mpc7: check subband indexMichael Niedermayer2012-03-10
| | | | | | | | | | | | | | This fixes a overread Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | mjpegb: Detect changing nb of planes in interlaced video.Michael Niedermayer2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo3: Fix out of reference reading with NULL blocks.Michael Niedermayer2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | snowenc: add no_bitstream option.Reimar Döffinger2012-03-10
| | | | | | | | | | | | This allows making e.g. MPlayer's -vf uspp filter about 20% faster. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | snowenc: mark some encode_subband arguments const.Reimar Döffinger2012-03-10
| | | | | | | | | | | | | | This makes it more obvious that this function only does bitstream encoding. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | DV: Use profile[1] detection hack only for stype 0.Reimar Döffinger2012-03-10
| | | | | | | | | | | | | | | | The two samples both have stype 0. Without this extra check, the code breaks 4:2:2 dvsd (stype 4), since that has the same resolution. Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de>
* | cook: tighten the quant_index_table range further.Michael Niedermayer2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-10
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: Fix a bunch of common typos. build: Skip compiling xvmc.h under the correct condition. configure: darwin: Change dylib install names to include major version. mpegts: Always honor a registration descriptor if present and there is no other codec information. aacdec: Fix SCE parity check. aacdec: Fix out of array writes (stack). rtsp: Only set the ttl parameter if the server actually gave a value udp: Set ttl for read-write streams, too, not only for write-only ones udp: Only bind to the multicast address if in read-only mode udp: Clarify the comment about binding the multicast address udp: Reorder comments Conflicts: libavcodec/aacdec.c tools/patcheck Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * Fix a bunch of common typos.Diego Biurrun2012-03-09
| |
| * build: Skip compiling xvmc.h under the correct condition.Diego Biurrun2012-03-09
| |
| * aacdec: Fix SCE parity check.Michael Niedermayer2012-03-09
| | | | | | | | | | | | | | | | | | An unpaired SCE preceding a CPE only makes sense for front SCEs preceding the first CPE. Split from FFmpeg commit a8d67efa53dae1d14614e3a7bd4e77e4eab066ab Signed-off-by: Alex Converse <alex.converse@gmail.com>
| * aacdec: Fix out of array writes (stack).Michael Niedermayer2012-03-09
| | | | | | | | | | | | | | | | | | | | | | | | Set the element to channel vector (e2c_vec) size to be the maximum number of aac channel elements. This makes it slightly larger than it needs to be because CCEs are never mapped to output channel locations. Also add a check that all input tags (legal or not) will fit. Split from FFmpeg commit a8d67efa53dae1d14614e3a7bd4e77e4eab066ab Signed-off-by: Alex Converse <alex.converse@gmail.com>
* | snow: reject unsupported chroma shifts.Michael Niedermayer2012-03-10
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | imgconvert: add macro pixdesc_has_alpha for checking if a pixel format has ↵Stefano Sabatini2012-03-10
| | | | | | | | | | | | an alpha component Reduce redundancy and simplify.
* | Fix 32bit sunrast decoding.Carl Eugen Hoyos2012-03-09
| | | | | | | | | | This patch visually breaks the sample from ticket #895, but decodes it identically as Gimp, ImageMagick and xview.
* | iff: add support for IFF DEEPPiotr Bandurski2012-03-09
| | | | | | | | | | | | | | | | | | Fixes trac #1045. Thanks to Peter Ross for his help with this patch. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | svq1dec: use AV_LOG_ERROR for error messagePiotr Bandurski2012-03-09
| | | | | | | | | | Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-09
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: ttadec: unbreak playback of matroska files vorbisdec: avoid invalid memory access Fix uninitialized reads on malformed ogg files. huffyuv: add padding to classic (v1) huffman tables. png: convert to bytestream2 API. dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2 avs: fix infinite loop on end-of-stream. tiffdec: Prevent illegal memory access caused by recycled pointers. rtpenc: Fix the AVRational used for av_rescale_q_rnd wma: fix off-by-one in array bounds check. Conflicts: libavcodec/huffyuv.c libavcodec/pngdec.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * ttadec: unbreak playback of matroska filesPaul B Mahol2012-03-08
| | | | | | | | | | | | | | | | Matroska demuxer needs to recreate tta header, so just display crc error without aborting. Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * vorbisdec: avoid invalid memory accessAaron Colwell2012-03-08
| | | | | | | | | | | | | | | | | | This fixes some invalid memory access caused later in the function by res_chan[] not being set for all channels. This happens when a channel doesn't appear a submap. This change simply returns a decoder error when this situation is detected. Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * huffyuv: add padding to classic (v1) huffman tables.Ronald S. Bultje2012-03-08
| | | | | | | | | | | | | | | | | | | | We slightly overread the input buffer, so we require padding at the end of the buffer, as is documented in the get_bits API. Without padding, we'll read uninitialized data or beyond the end of the .rodata, which may crash. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * png: convert to bytestream2 API.Ronald S. Bultje2012-03-08
| | | | | | | | | | | | | | Protects against overreads in the input buffer. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2Kostya Shishkov2012-03-08
| |
| * avs: fix infinite loop on end-of-stream.Ronald S. Bultje2012-03-07
| | | | | | | | | | | | | | | | | | The codec would keep returning the last decoded frame if the stream contains B-frames, since it wouldn't clear that frame from the list of frames to be returned to the user. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * tiffdec: Prevent illegal memory access caused by recycled pointers.Alex Converse2012-03-07
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * wma: fix off-by-one in array bounds check.Ronald S. Bultje2012-03-07
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* | qpeg: remove unused var from decode_frame()Michael Niedermayer2012-03-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | prores_anatoliy: remove unused variable from prores_encode_frame()Michael Niedermayer2012-03-08
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | lavc/utils: fix three const warnings.Nicolas George2012-03-08
| | | | | | | | No change in assembly code produced on x86_64.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-08
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (29 commits) sbrdsp.asm: convert all instructions to float/SSE ones. dv: cosmetics. dv: check buffer size before reading profile. Revert "AAC SBR: group some writes." udp: Print an error message if bind fails cook: extend channel uncoupling tables so the full bit range is covered. roqvideo: cosmetics. roqvideo: convert to bytestream2 API. dca: don't use av_clip_uintp2(). wmall: fix build with -DDEBUG enabled. smc: port to bytestream2 API. AAC SBR: group some writes. dsputil: remove shift parameter from scalarproduct_int16 SBR DSP: unroll sum_square rv34: remove dead code in intra availability check rv34: clean a bit availability checks. v4l2: update documentation tgq: convert to bytestream2 API. parser: remove forward declaration of MpegEncContext dca: prevent accessing static arrays with invalid indexes. ... Conflicts: doc/indevs.texi libavcodec/Makefile libavcodec/dca.c libavcodec/dvdata.c libavcodec/eatgq.c libavcodec/mmvideo.c libavcodec/roqvideodec.c libavcodec/smc.c libswscale/output.c Merged-by: Michael Niedermayer <michaelni@gmx.at>