summaryrefslogtreecommitdiffstats
path: root/libavcodec
Commit message (Collapse)AuthorAgeFilesLines
...
| * cook: extend channel uncoupling tables so the full bit range is covered.Ronald S. Bultje2012-03-072-7/+24
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * roqvideo: cosmetics.Ronald S. Bultje2012-03-071-16/+16
| |
| * roqvideo: convert to bytestream2 API.Ronald S. Bultje2012-03-072-36/+37
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * dca: don't use av_clip_uintp2().Ronald S. Bultje2012-03-071-1/+1
| | | | | | | | | | The argument is not a literal, thus causing the ARM v6 or later builds to break.
| * wmall: fix build with -DDEBUG enabled.Ronald S. Bultje2012-03-071-9/+8
| |
| * smc: port to bytestream2 API.Ronald S. Bultje2012-03-071-42/+32
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * AAC SBR: group some writes.Christophe Gisquet2012-03-071-12/+6
| | | | | | | | Signed-off-by: Ronald S. Bultje <[email protected]>
| * dsputil: remove shift parameter from scalarproduct_int16Christophe GISQUET2012-03-076-38/+9
| | | | | | | | | | | | | | | | | | There is only one caller, which does not need the shifting. Other use cases are situations where different roundings would be needed. The x86 and neon versions are modified accordingly. Signed-off-by: Ronald S. Bultje <[email protected]>
| * SBR DSP: unroll sum_squareChristophe GISQUET2012-03-071-4/+9
| | | | | | | | | | | | | | | | The length is even, so some unrolling can be performed. Timings are for x86: - 32bits: 102c -> 82c - 64bits: 82c -> 69c Signed-off-by: Ronald S. Bultje <[email protected]>
| * rv34: remove dead code in intra availability checkChristophe GISQUET2012-03-071-15/+0
| | | | | | | | | | | | | | This was an incorrect copy-and-paste to a code not needing the original code. Spotted by Jason in a previous review but forgotten in the commit. Signed-off-by: Ronald S. Bultje <[email protected]>
| * rv34: clean a bit availability checks.Christophe GISQUET2012-03-071-10/+10
| | | | | | | | Signed-off-by: Ronald S. Bultje <[email protected]>
| * tgq: convert to bytestream2 API.Ronald S. Bultje2012-03-071-28/+28
| | | | | | | | | | | | | | This protects against input buffer overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * parser: remove forward declaration of MpegEncContextPaul B Mahol2012-03-071-2/+0
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Ronald S. Bultje <[email protected]>
| * dca: prevent accessing static arrays with invalid indexes.Ronald S. Bultje2012-03-072-12/+27
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * raw: move buffer size check up.Ronald S. Bultje2012-03-071-3/+3
| | | | | | | | | | | | | | This way, it protects against overreads for 4bpp/2bpp content also. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * lpcm: fix sample size calculation for 20bit LCPM.Ronald S. Bultje2012-03-071-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * algmm: convert to bytestream2 API.Ronald S. Bultje2012-03-071-38/+51
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * wma: Refactor common code to fix standalone compilation of WMA lossless decoder.Diego Biurrun2012-03-077-50/+102
| |
| * vc1: Move init code shared between decoder and parser to common code file.Diego Biurrun2012-03-076-369/+375
| | | | | | | | This fixes standalone compilation of the VC-1 parser.
| * x86: Remove duplicated AVG_3DNOW_OP / AVG_MMX2_OP macros from h264_qpel_mmx.c.Diego Biurrun2012-03-071-10/+0
| |
* | ass_split: accept files with only \n and no \r.Nicolas George2012-03-071-1/+1
| | | | | | | | | | | | The +1 is there to skip the ','. With \r\n, the +1 skips the \r but that is ok. With only \n, the +1 skips it and all hell breaks loose.
* | assdec: avoid a possible NULL dereference.Nicolas George2012-03-071-1/+4
| |
* | ffv1: PIX_FMT_YUV444P10 supportPaul B Mahol2012-03-071-4/+6
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | ffv1: PIX_FMT_YUV444P9 & PIX_FMT_YUV422P9 supportPaul B Mahol2012-03-071-4/+7
| | | | | | | | | | Signed-off-by: Paul B Mahol <[email protected]> Signed-off-by: Michael Niedermayer <[email protected]>
* | Revert "error_resilience: initialize s->block_index[]."Michael Niedermayer2012-03-071-20/+0
| | | | | | | | | | | | This reverts commit 6193ff68549ecbaf1a4d63a0e06964ec580ac620. This change is unneeded.
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-0711-168/+157
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: SBR DSP: fix SSE code to not use SSE2 instructions. cpu: initialize mask to -1, so that by default, optimizations are used. error_resilience: initialize s->block_index[]. svq3: protect against negative quantizers. Don't use ff_cropTbl[] for IDCT. swscale: make filterPos 32bit. FATE: add CPUFLAGS variable, mapping to -cpuflags avconv option. avconv: add -cpuflags option for setting supported cpuflags. cpu: add av_set_cpu_flags_mask(). libx264: Allow overriding the sliced threads option avconv: fix counting encoded video size. Conflicts: doc/APIchanges doc/fate.texi doc/ffmpeg.texi ffmpeg.c libavcodec/h264idct_template.c libavcodec/svq3.c libavutil/avutil.h libavutil/cpu.c libavutil/cpu.h libswscale/swscale.c tests/Makefile tests/fate-run.sh tests/regression-funcs.sh Merged-by: Michael Niedermayer <[email protected]>
| * SBR DSP: fix SSE code to not use SSE2 instructions.Reimar Döffinger2012-03-061-1/+1
| | | | | | | | | | | | | | | | movq from SSE register _to_ memory is an SSE2 instruction. Use the SSE movlps function instead that does the same thing. Signed-off-by: Reimar Döffinger <[email protected]> Signed-off-by: Ronald S. Bultje <[email protected]>
| * error_resilience: initialize s->block_index[].Ronald S. Bultje2012-03-061-0/+20
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * svq3: protect against negative quantizers.Ronald S. Bultje2012-03-061-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * Don't use ff_cropTbl[] for IDCT.Ronald S. Bultje2012-03-069-201/+161
| | | | | | | | | | | | | | | | Results of IDCT can by far outreach the range of ff_cropTbl[], leading to overreads and potentially crashes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: [email protected]
| * libx264: Allow overriding the sliced threads optionMartin Storsjö2012-03-061-0/+3
| | | | | | | | Signed-off-by: Martin Storsjö <[email protected]>
* | lavc/utils: fix const correctness of AVClass castMichael Niedermayer2012-03-071-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | lavc/utils: remove unused variable from avcodec_encode_video2.Michael Niedermayer2012-03-071-1/+0
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | mjpegenc: Fix const correctness and avoid writes into AVFrame of ↵Michael Niedermayer2012-03-071-4/+5
| | | | | | | | | | | | amv_encode_picture() Signed-off-by: Michael Niedermayer <[email protected]>
* | h264 Fix: "warning: assigning to 'uint8_t *' (aka 'unsigned char *') from ↵Michael Niedermayer2012-03-071-1/+1
| | | | | | | | | | | | 'const uint8_t *' (aka 'const unsigned char *') discards qualifiers" Signed-off-by: Michael Niedermayer <[email protected]>
* | h264: fix warning about "uint8_t *p" and constMichael Niedermayer2012-03-071-1/+1
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | cook: silence some signed overflow warnings.Michael Niedermayer2012-03-071-2/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <[email protected]>
* | aacdec: Fix out of array writes (stack).Michael Niedermayer2012-03-061-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes an issue in the code to check the size that will be written to match the actual code writing. In the long term it would make sense to change this so the counting and writing code are the same so they dont need to be kept in sync. It also increases the array size, which was too small either way and adds a redudnant saftey check. This issue does not affect any FFmpeg release as it has been introduced Jan 31 which is narrowly after our last release. Signed-off-by: Michael Niedermayer <[email protected]>
* | Fix bink decoder for files with 24px width.Bastien Bouclet2012-03-061-1/+1
| | | | | | | | Fixes ticket #962.
* | diracdec: Correct the bytestream end pointer.Michael Niedermayer2012-03-061-1/+1
| | | | | | | | | | | | | | This fixes some arith decoder overreads and a potential infinite loop. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <[email protected]>
* | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-0623-518/+806
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (31 commits) cdxl demux: do not create packets with uninitialized data at EOF. Replace computations of remaining bits with calls to get_bits_left(). amrnb/amrwb: Remove get_bits usage. cosmetics: reindent avformat: do not require a pixel/sample format if there is no decoder avformat: do not fill-in audio packet duration in compute_pkt_fields() lavf: Use av_get_audio_frame_duration() in get_audio_frame_size() dca_parser: parse the sample rate and frame durations libspeexdec: do not set AVCodecContext.frame_size libopencore-amr: do not set AVCodecContext.frame_size alsdec: do not set AVCodecContext.frame_size siff: do not set AVCodecContext.frame_size amr demuxer: do not set AVCodecContext.frame_size. aiffdec: do not set AVCodecContext.frame_size mov: do not set AVCodecContext.frame_size ape: do not set AVCodecContext.frame_size. rdt: remove workaround for infinite loop with aac avformat: do not require frame_size in avformat_find_stream_info() for CELT avformat: do not require frame_size in avformat_find_stream_info() for MP1/2/3 avformat: do not require frame_size in avformat_find_stream_info() for AAC ... Conflicts: doc/APIchanges libavcodec/Makefile libavcodec/avcodec.h libavcodec/h264.c libavcodec/h264_ps.c libavcodec/utils.c libavcodec/version.h libavcodec/x86/dsputil_mmx.c libavformat/utils.c Merged-by: Michael Niedermayer <[email protected]>
| * Replace computations of remaining bits with calls to get_bits_left().Alex Converse2012-03-0510-19/+18
| |
| * amrnb/amrwb: Remove get_bits usage.Alex Converse2012-03-052-16/+4
| | | | | | | | | | It is used to parse fixed sized fields out of a single octet. The code is simpler without it.
| * dca_parser: parse the sample rate and frame durationsJustin Ruggles2012-03-054-46/+120
| |
| * libspeexdec: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-051-3/+0
| | | | | | | | It is not necessary
| * libopencore-amr: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-051-1/+0
| | | | | | | | It is not necessary
| * alsdec: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-051-1/+0
| | | | | | | | It is not necessary
| * avcodec: add av_get_audio_frame_duration() function.Justin Ruggles2012-03-053-1/+153
| | | | | | | | | | This is a utility function for the user to get the frame duration based on the codec id, frame size in bytes, and various AVCodecContext parameters.
| * avcodec: add av_get_exact_bits_per_sample() functionJustin Ruggles2012-03-052-11/+33
| | | | | | | | | | | | This only returns bits per sample when it is exactly correct. That is, the codec contains only raw samples with no frame headers or padding. This applies to basically all PCM codecs and a small subset of ADPCM codecs.
| * Fix format string vulnerability detected by -Wformat-security.Fabian Greffrath2012-03-051-2/+2
| | | | | | | | Signed-off-by: Diego Biurrun <[email protected]>