aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * | 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: libav-stable@libav.org
| * | swscale: make filterPos 32bit.Ronald S. Bultje2012-03-067-38/+41
| | | | | | | | | | | | | | | | | | | | | Fixes overflows for large image sizes. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
| * | FATE: add CPUFLAGS variable, mapping to -cpuflags avconv option.Anton Khirnov2012-03-064-5/+9
| | |
| * | avconv: add -cpuflags option for setting supported cpuflags.Anton Khirnov2012-03-064-5/+76
| | | | | | | | | | | | Useful for testing.
| * | cpu: add av_set_cpu_flags_mask().Anton Khirnov2012-03-064-2/+23
| | |
| * | libx264: Allow overriding the sliced threads optionMartin Storsjö2012-03-061-0/+3
| | | | | | | | | | | | Signed-off-by: Martin Storsjö <martin@martin.st>
| * | avconv: fix counting encoded video size.Anton Khirnov2012-03-061-2/+2
| | | | | | | | | | | | | | | avcodec_encode_video2() return value is 0 on success, encoded frame size is stored in the packet.
* | | lavc/utils: fix const correctness of AVClass castMichael Niedermayer2012-03-071-1/+1
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | lavc/utils: remove unused variable from avcodec_encode_video2.Michael Niedermayer2012-03-071-1/+0
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | mjpegenc: Fix const correctness and avoid writes into AVFrame of ↵Michael Niedermayer2012-03-071-4/+5
| | | | | | | | | | | | | | | | | | amv_encode_picture() Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | 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 <michaelni@gmx.at>
* | | h264: fix warning about "uint8_t *p" and constMichael Niedermayer2012-03-071-1/+1
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | cook: silence some signed overflow warnings.Michael Niedermayer2012-03-071-2/+2
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | swscale: remove duplicate PIX_FMT_GBRP entry from format_entries.Michael Niedermayer2012-03-071-1/+0
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | vsrx_mptestsrc: remove duplicate config_props init.Michael Niedermayer2012-03-071-1/+0
| | | | | | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | | 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 <michaelni@gmx.at>
* | | 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 <michaelni@gmx.at>
* | | Merge remote-tracking branch 'qatar/master'Michael Niedermayer2012-03-0643-879/+1213
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 <michaelni@gmx.at>
| * | cdxl demux: do not create packets with uninitialized data at EOF.Reimar Döffinger2012-03-051-0/+1
| | | | | | | | | | | | | | | | | | Signed-off-by: Reimar Döffinger <Reimar.Doeffinger@gmx.de> Signed-off-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
| * | 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.
| * | cosmetics: reindentJustin Ruggles2012-03-051-5/+5
| | |
| * | avformat: do not require a pixel/sample format if there is no decoderJustin Ruggles2012-03-052-13/+30
| | | | | | | | | | | | | | | | | | | | | | | | Also, do not keep trying to find and open a decoder in try_decode_frame() if we already tried and failed once. Fixes always searching until max_analyze_duration in avformat_find_stream_info() when demuxing codecs without a decoder.
| * | avformat: do not fill-in audio packet duration in compute_pkt_fields()Justin Ruggles2012-03-051-14/+33
| | | | | | | | | | | | Use the estimated duration only to calculate missing timestamps if needed.
| * | lavf: Use av_get_audio_frame_duration() in get_audio_frame_size()Justin Ruggles2012-03-053-39/+35
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also, do not give AVCodecContext.frame_size priority for muxing. Updated 2 FATE references: dxa-feeble - adds 1 audio frame that is still within 2 seconds as specified by -t 2 in the FATE test wmv8-drm-nodec - durations are not needed. previously they were estimated using the packet size and average bit rate.
| * | 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
| * | siff: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-051-3/+5
| | | | | | | | | | | | | | | also, properly set AVCodecContext.bits_per_coded_sample, AVStreasm.start_time, and AVPacket.duration.
| * | amr demuxer: do not set AVCodecContext.frame_size.Justin Ruggles2012-03-051-2/+0
| | | | | | | | | | | | it is not necessary.
| * | aiffdec: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-052-30/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | It is unnecessary. Also, for some codecs we're reading more than 1 frame per packet. Instead we use a private context variable to calculate the bit rate, stream duration, and packet durations. Updated FATE seek test, which has slightly different timestamps due to a more accurate bit rate calculation.
| * | mov: do not set AVCodecContext.frame_sizeJustin Ruggles2012-03-051-13/+0
| | | | | | | | | | | | It is not necessary.
| * | ape: do not set AVCodecContext.frame_size.Justin Ruggles2012-03-051-1/+0
| | | | | | | | | | | | prevents lavf from setting incorrect packet durations.
| * | rdt: remove workaround for infinite loop with aacJustin Ruggles2012-03-051-3/+0
| | | | | | | | | | | | avformat_find_stream_info() no longer hangs while waiting for AAC frame_size
| * | avformat: do not require frame_size in avformat_find_stream_info() for CELTJustin Ruggles2012-03-051-3/+0
| | | | | | | | | | | | | | | In Ogg/CELT, frame_size is found in the same place as the sample_rate and channels, so we do not need to force the frame_size to be parsed.
| * | avformat: do not require frame_size in avformat_find_stream_info() for MP1/2/3Justin Ruggles2012-03-051-3/+0
| | | | | | | | | | | | | | | It was only needed to avoid a bad time base (and thus non-monotone timestamps) for stream copy to avi.
| * | avformat: do not require frame_size in avformat_find_stream_info() for AACJustin Ruggles2012-03-051-1/+0
| | | | | | | | | | | | We already will get the needed info because of CODEC_CAP_CHANNEL_CONF
| * | swfenc: use av_get_audio_frame_duration() instead of AVCodecContext.frame_sizeJustin Ruggles2012-03-051-5/+1
| | | | | | | | | | | | | | | This way we can do stream copy without having the demuxer wait until frame_size has been set.
| * | rtpenc: use av_get_audio_frame_duration() for max_frames_per_packetJustin Ruggles2012-03-051-2/+9
| | | | | | | | | | | | | | | It is more reliable than AVCodecContext.frame_size for codecs with constant packet duration.
| * | riffenc: use av_get_audio_frame_duration()Justin Ruggles2012-03-051-5/+23
| | | | | | | | | | | | | | | | | | For encoding, frame_size is not a reliable indicator of packet duration. Also, we don't want to have to force the demuxer to find frame_size for stream copy to work.
| * | avcodec: add av_get_audio_frame_duration() function.Justin Ruggles2012-03-054-1/+157
| | | | | | | | | | | | | | | 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.
| * | lavf: deobfuscate read_frame_internal().Anton Khirnov2012-03-056-172/+180
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Split off packet parsing into a separate function. Parse full packets at once and store them in a queue, eliminating the need for tracking parsing state in AVStream. The horrible unreadable loop in read_frame_internal() now isn't weirdly ordered and doesn't contain evil gotos, so it should be much easier to understand. compute_pkt_fields() now invents slightly different timestamps for two raw vc1 tests, due to has_b_frames being set a bit later. They shouldn't be more wrong (or right) than previous ones.
| * | lavf: make read_from_packet_buffer() more flexible.Anton Khirnov2012-03-051-12/+20
| | | | | | | | | | | | | | | | | | | | | | | | Make packet buffer a parameter, don't hardcode it to be AVFormatContext.packet_buffer. Also move the function higher in the file, since it will be called from read_frame_internal().
| * | lavf: factorize freeing a packet buffer.Anton Khirnov2012-03-051-17/+13
| | |
| * | Fix format string vulnerability detected by -Wformat-security.Fabian Greffrath2012-03-051-2/+2
| | | | | | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
| * | dv: Do not redundantly initialize struct members to zero.Diego Biurrun2012-03-051-7/+1
| | |
| * | x86: clean up ff_dsputil_init_mmx()Mans Rullgard2012-03-051-417/+475
| | | | | | | | | | | | | | | | | | | | | | | | This splits ff_dsputil_init_mmx() into multiple functions, one for each MMX/SSE level, somewhat simplifying the nested conditions. Signed-off-by: Mans Rullgard <mans@mansr.com> Signed-off-by: Diego Biurrun <diego@biurrun.de>