summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
* | iff: check for pbm tagami_stuff2012-03-121-22/+26
| | | | | | | | | | | | more robust Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-123-24/+29
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * dsicinvideo: validate buffer offset before copying pixels.Ronald S. Bultje2012-03-111-15/+25
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * cook: error out on quant_index values outside [-63, 63] range.Ronald S. Bultje2012-03-101-14/+36
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * mpc: pad mpc_CC/SCF[] tables to allow for negative indices.Ronald S. Bultje2012-03-103-8/+12
| | | | | | | | | | | | | | | | 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: [email protected]
* | alsdec: Fix out of ltp_gain_values read.Thilo Borgmann2012-03-111-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | alsdec: pretty print for another log messageThilo Borgmann2012-03-111-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-114-520/+472
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * cook: expand dither_tab[], and make sure indexes into it don't overflow.Ronald S. Bultje2012-03-102-3/+7
| | | | | | | | | | | | | | Fixes overflows in accessing dither_tab[]. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * xxan: reindent xan_unpack_luma().Ronald S. Bultje2012-03-101-36/+36
| | | | | | | | It used 3-space indent instead of 4-space indent.
| * xxan: protect against chroma LUT overreads.Ronald S. Bultje2012-03-101-6/+8
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * xxan: convert to bytestream2 API.Ronald S. Bultje2012-03-101-61/+56
| | | | | | | | | | | | | | Protects against overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * xxan: don't read before start of buffer in av_memcpy_backptr().Ronald S. Bultje2012-03-101-1/+2
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * vp8: convert mbedge loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-101-235/+212
| |
| * vp8: convert inner loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-101-187/+164
| |
* | vc1: add missing entries to ff_vc1_fps_nr.Michael Niedermayer2012-03-102-2/+2
| | | | | | | | | | | | | | Fixes out of array read Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | mpc7: check subband indexMichael Niedermayer2012-03-101-0/+4
| | | | | | | | | | | | | | This fixes a overread Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | mjpegb: Detect changing nb of planes in interlaced video.Michael Niedermayer2012-03-101-0/+6
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | indeo3: Fix out of reference reading with NULL blocks.Michael Niedermayer2012-03-101-0/+12
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | snowenc: add no_bitstream option.Reimar Döffinger2012-03-102-0/+3
| | | | | | | | | | | | This allows making e.g. MPlayer's -vf uspp filter about 20% faster. Signed-off-by: Reimar Döffinger <[email protected]>
* | snowenc: mark some encode_subband arguments const.Reimar Döffinger2012-03-101-2/+2
| | | | | | | | | | | | | | This makes it more obvious that this function only does bitstream encoding. Signed-off-by: Reimar Döffinger <[email protected]>
* | DV: Use profile[1] detection hack only for stype 0.Reimar Döffinger2012-03-101-1/+1
| | | | | | | | | | | | | | | | 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 <[email protected]>
* | cook: tighten the quant_index_table range further.Michael Niedermayer2012-03-101-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-104-36/+36
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * Fix a bunch of common typos.Diego Biurrun2012-03-092-34/+34
| |
| * build: Skip compiling xvmc.h under the correct condition.Diego Biurrun2012-03-091-1/+1
| |
| * aacdec: Fix SCE parity check.Michael Niedermayer2012-03-091-1/+1
| | | | | | | | | | | | | | | | | | 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 <[email protected]>
| * aacdec: Fix out of array writes (stack).Michael Niedermayer2012-03-091-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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 <[email protected]>
* | snow: reject unsupported chroma shifts.Michael Niedermayer2012-03-101-0/+5
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | imgconvert: add macro pixdesc_has_alpha for checking if a pixel format has ↵Stefano Sabatini2012-03-101-15/+5
| | | | | | | | | | | | an alpha component Reduce redundancy and simplify.
* | Fix 32bit sunrast decoding.Carl Eugen Hoyos2012-03-091-1/+1
| | | | | | | | | | 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-091-1/+9
| | | | | | | | | | | | | | | | | | Fixes trac #1045. Thanks to Peter Ross for his help with this patch. Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | svq1dec: use AV_LOG_ERROR for error messagePiotr Bandurski2012-03-091-1/+1
| | | | | | | | | | Reviewed-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-097-46/+46
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * ttadec: unbreak playback of matroska filesPaul B Mahol2012-03-081-2/+1
| | | | | | | | | | | | | | | | Matroska demuxer needs to recreate tta header, so just display crc error without aborting. Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Ronald S. Bultje <[email protected]>
| * vorbisdec: avoid invalid memory accessAaron Colwell2012-03-081-0/+3
| | | | | | | | | | | | | | | | | | 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 <[email protected]>
| * huffyuv: add padding to classic (v1) huffman tables.Ronald S. Bultje2012-03-081-4/+6
| | | | | | | | | | | | | | | | | | | | 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: [email protected]
| * png: convert to bytestream2 API.Ronald S. Bultje2012-03-081-39/+30
| | | | | | | | | | | | | | Protects against overreads in the input buffer. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * dca: include libavutil/mathematics.h for possibly missing M_SQRT1_2Kostya Shishkov2012-03-081-0/+1
| |
| * avs: fix infinite loop on end-of-stream.Ronald S. Bultje2012-03-071-0/+1
| | | | | | | | | | | | | | | | | | 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: [email protected]
| * tiffdec: Prevent illegal memory access caused by recycled pointers.Alex Converse2012-03-071-0/+2
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * wma: fix off-by-one in array bounds check.Ronald S. Bultje2012-03-071-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
* | qpeg: remove unused var from decode_frame()Michael Niedermayer2012-03-081-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | prores_anatoliy: remove unused variable from prores_encode_frame()Michael Niedermayer2012-03-081-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | lavc/utils: fix three const warnings.Nicolas George2012-03-081-3/+3
| | | | | | | | No change in assembly code produced on x86_64.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-0837-741/+753
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <[email protected]>
| * sbrdsp.asm: convert all instructions to float/SSE ones.Reimar Döffinger2012-03-071-8/+8
| | | | | | | | | | | | | | | | | | | | | | Since the values are floats, using the float operations makes sense, improves performance on some CPUs and makes the code SSE compatible instead of needing SSE2. Based on suggestion by Jason. Signed-off-by: Reimar Döffinger <[email protected]> Signed-off-by: Ronald S. Bultje <[email protected]>
| * dv: cosmetics.Ronald S. Bultje2012-03-071-15/+15
| |
| * dv: check buffer size before reading profile.Ronald S. Bultje2012-03-071-3/+5
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * Revert "AAC SBR: group some writes."Ronald S. Bultje2012-03-071-6/+12
| | | | | | | | | | This reverts commit ba36f14e5d34bcca6ecf77ba1c7512d1b51a9740. It broke decoding on x86-32 on some systems.