summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
* | vc1: fix out of array reads in vc1_inv_trans_4x8_c()Michael Niedermayer2012-03-011-9/+8
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | vc1: fix out of array reads in vc1_inv_trans_8x4_c()Michael Niedermayer2012-03-011-5/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | mpc: Fix mpc_CC table and use.Michael Niedermayer2012-03-012-4/+5
| | | | | | | | | | | | | | | | This is based on the reference implementation and fixes a global out of array read. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | mpc: Fix mpc_SCF use and content.Michael Niedermayer2012-03-012-5/+37
| | | | | | | | | | | | | | | | This fixes a out of global array read. This change is based on the reference mpc imlementation. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | rv34dsp: avoid use of crop table for idct.Michael Niedermayer2012-03-011-5/+4
| | | | | | | | | | | | | | Fixes out of array read. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | mpegaudiodec: Enable checked bitstream reader.Michael Niedermayer2012-03-011-2/+0
| | | | | | | | | | | | | | | | It appears there are corner cases with damaged input that can lead to small overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | mpegaudiodec: change granule skip code to avoid false checked bitstream ↵Michael Niedermayer2012-03-011-15/+20
| | | | | | | | | | | | | | | | | | reader errors. Code ported from qatar/master, please see there for per line authorship. Main authors AFAIK are Ronald and Justin. I have no authorship on this. Signed-off-by: Michael Niedermayer <[email protected]>
* | svq3dec: fix overread of the cliping table.Michael Niedermayer2012-03-011-5/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-0131-296/+546
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (58 commits) amrnbdec: check frame size before decoding. cscd: use negative error values to indicate decode_init() failures. h264: prevent overreads in intra PCM decoding. FATE: do not decode audio in the nuv test. dxa: set audio stream time base using the sample rate psx-str: do not allow seeking by bytes asfdec: Do not set AVCodecContext.frame_size vqf: set packet parameters after av_new_packet() mpegaudiodec: use DSPUtil.butterflies_float(). FATE: add mp3 test for sample that exhibited false overreads fate: add cdxl test for bit line plane arrangement vmnc: return error on decode_init() failure. libvorbis: add/update error messages libvorbis: use AVFifoBuffer for output packet buffer libvorbis: remove unneeded e_o_s check libvorbis: check return values for functions that can return errors libvorbis: use float input instead of s16 libvorbis: do not flush libvorbis analysis if dsp state was not initialized libvorbis: use VBR by default, with default quality of 3 libvorbis: fix use of minrate/maxrate AVOptions ... Conflicts: Changelog doc/APIchanges libavcodec/avcodec.h libavcodec/dpxenc.c libavcodec/libvorbis.c libavcodec/vmnc.c libavformat/asfdec.c libavformat/id3v2enc.c libavformat/internal.h libavformat/mp3enc.c libavformat/utils.c libavformat/version.h libswscale/utils.c tests/fate/video.mak tests/ref/fate/nuv tests/ref/fate/prores-alpha tests/ref/lavf/ffm tests/ref/vsynth1/prores tests/ref/vsynth2/prores Merged-by: Michael Niedermayer <[email protected]>
| * amrnbdec: check frame size before decoding.Vitor Sessak2012-02-291-0/+8
| | | | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected] Signed-off-by: Ronald S. Bultje <[email protected]>
| * cscd: use negative error values to indicate decode_init() failures.Ronald S. Bultje2012-02-291-2/+2
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * h264: prevent overreads in intra PCM decoding.Ronald S. Bultje2012-02-291-0/+2
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * mpegaudiodec: use DSPUtil.butterflies_float().Vitor Sessak2012-02-291-0/+7
| | | | | | | | Signed-off-by: Ronald S. Bultje <[email protected]>
| * vmnc: return error on decode_init() failure.Ronald S. Bultje2012-02-291-0/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * libvorbis: add/update error messagesJustin Ruggles2012-02-291-9/+19
| | | | | | | | also use AVERROR codes for some return values instead of -1
| * libvorbis: use AVFifoBuffer for output packet bufferJustin Ruggles2012-02-291-18/+17
| | | | | | | | simplifies the code and does less memmove()
| * libvorbis: remove unneeded e_o_s checkJustin Ruggles2012-02-291-4/+0
| | | | | | | | | | vorbis_bitrate_flushpacket() does not return any packets that should not be output in the bitstream.
| * libvorbis: check return values for functions that can return errorsJustin Ruggles2012-02-291-7/+15
| |
| * libvorbis: use float input instead of s16Justin Ruggles2012-02-291-3/+3
| | | | | | | | | | libvorbis takes float input, so we can just deinterleave/reorder the input as-is instead of also converting.
| * libvorbis: do not flush libvorbis analysis if dsp state was not initializedJustin Ruggles2012-02-291-1/+4
| | | | | | | | Fixes a segfault if init() fails before initializing the dsp state
| * libvorbis: use VBR by default, with default quality of 3Justin Ruggles2012-02-291-2/+12
| |
| * libvorbis: fix use of minrate/maxrate AVOptionsJustin Ruggles2012-02-292-5/+5
| | | | | | | | | | | | - enable the options for audio encoding - properly check for user-set maxrate - use correct calling order in vorbis_encode_setup_managed()
| * libvorbis: cosmetics: renaming/pretty-printing/comments/unused codeJustin Ruggles2012-02-291-109/+115
| |
| * (e)ac3enc: select a default bit rate based on the channel layoutJustin Ruggles2012-02-295-0/+20
| |
| * ac3enc: choose the closest bit rate to the one requested instead of failingJustin Ruggles2012-02-291-6/+11
| |
| * rpza: error out on buffer overreads.Ronald S. Bultje2012-02-291-0/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * qtrle: return error on decode_init() failure.Ronald S. Bultje2012-02-291-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * dpxenc: Don't include the libavcodec ident if bitexact mode is enabledMartin Storsjö2012-02-291-1/+2
| | | | | | | | | | | | This avoids breaking fate every time the lavc version is bumped. Signed-off-by: Martin Storsjö <[email protected]>
| * prores: store and retrieve extended colourspace informationKostya Shishkov2012-02-292-3/+7
| | | | | | | | Based on the patch by Phil Barrett.
| * proresenc: correct edge emulationPhil Barrett2012-02-291-7/+7
| | | | | | | | Signed-off-by: Kostya Shishkov <[email protected]>
| * prores: handle 444 chroma in right orderKostya Shishkov2012-02-292-25/+53
| | | | | | | | | | | | | | ProRes codes chroma blocks in 444 mode in different order than luma blocks, so make both decoder and encoder read/write chroma blocks in right order. Reported by Phil Barrett
| * mpegvideo_enc: add quantizer_noise_shaping private option.Anton Khirnov2012-02-294-11/+17
| | | | | | | | Deprecate corresponding AVCodecContext field.
| * lavc: deprecate AVCodecContext.inter_threshold.Anton Khirnov2012-02-293-4/+9
| | | | | | | | It's unused.
| * lavc: deprecate AVCodecContext.color_table_id.Anton Khirnov2012-02-293-1/+8
| | | | | | | | | | It's currently only used as temporary storage by the mov demuxer. Make it use a local variable instead.
| * mpegvideo_enc: add chroma/luma_elim_threshold private options.Anton Khirnov2012-02-294-5/+17
| | | | | | | | Deprecate corresponding AVCodecContext fields.
| * mpegvideo_enc: add cbp_rd flag to mpv_flags.Anton Khirnov2012-02-296-7/+14
| | | | | | | | Deprecate CODEC_FLAG_CBP_RD.
| * mpegvideo_enc: add qp_rd flag to mpv_flags.Anton Khirnov2012-02-294-9/+18
| | | | | | | | Deprecate CODEC_FLAG_QP_RD.
| * mpegvideo_enc: add strict_gop flag to mpv_flags.Anton Khirnov2012-02-294-3/+9
| | | | | | | | Deprecate CODEC_FLAG2_STRICT_GOP.
| * lavc: add -mpv_flags to mpegvideo_enc-based encoders.Anton Khirnov2012-02-2911-2/+68
| | | | | | | | | | Deprecate CODEC_FLAG2_SKIP_RD in favor of the corresponding mpv_flags flag.
| * aacdec: Support stereo streams that erroneously signal predefined channel ↵Michael Niedermayer2012-02-281-0/+14
| | | | | | | | | | | | | | | | | | | | | | configuration 1 (mono). [[email protected]] Move code to get_che() Update for AAC new channel configuration interface Only set chan_config if output_configure succeeds. Signed-off-by: Alex Converse <[email protected]>
| * aacdec: Reshuffle functions so get_che() can call ↵Alex Converse2012-02-281-70/+70
| | | | | | | | set_default_channel_config() and output_configure().
| * vp56: error out on invalid stream dimensions.Ronald S. Bultje2012-02-282-1/+10
| | | | | | | | | | | | | | Prevents crashes when playing corrupt vp5/6 streams. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
* | lavc: fix 10l oversight in realloc of avcodec_encode_video2.Michael Niedermayer2012-02-291-1/+1
| | | | | | | | | | | | Packets are not guranteed to be allocated by av_malloc(). Signed-off-by: Michael Niedermayer <[email protected]>
* | dca: dont overread dca_default_coeffs.Michael Niedermayer2012-02-291-0/+4
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | dca: Check scale_sum.Michael Niedermayer2012-02-291-2/+14
| | | | | | | | | | | | | | Fixes a out of array read. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | dca: Check LFEScaleIndex.Michael Niedermayer2012-02-291-1/+7
| | | | | | | | | | | | | | | | Its not clear from the spec what to do with values larger than 127 so iam opting for the safe side and ask for a sample. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | encode_video2: shrink packet after encoding.Nicolas George2012-02-291-0/+7
| | | | | | | | | | | | | | With the encode2 API, encoders allocate huge packets to be sure they have enough room (a typical case is mpeg4, which allocs ~10M for 1280x768 yuv420p) but only actually use a very small part of the buffer.
* | vmnc: Fail if bpp is not recognized instead of crashing.Michael Niedermayer2012-02-291-0/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | get_buffers: Check that pix_fmt is not NONE.Michael Niedermayer2012-02-291-1/+1
| | | | | | | | | | | | | | This is somewhat redundant as no decoder should call get_buffer() with such argument. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | alsdec: Check that quantized parcor coeffs are within range.Michael Niedermayer2012-02-291-0/+4
| | | | | | | | | | | | | | | | | | | | ALS spec: 11.6.3.1.1 Quantization and encoding of parcor coefficients ... In all cases the resulting quantized values ak are restricted to the range [-64,63]. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>