aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * 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>
* | libutvideo: Add Ut Video encoder wrapperDerek Buitenhuis2012-03-059-4/+250
| | | | | | | | | | | | | | | | | | All colorspaces are supported. Renamed libutvideo.cpp to libutvideodec.cpp. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | libutvideo: Move structs and includes to headerDerek Buitenhuis2012-03-052-25/+51
| | | | | | | | | | | | | | | | This is so the forthcoming encoder wrapper can share them. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Remove AV_LOG_DEBUG from av_dlog() calls.Carl Eugen Hoyos2012-03-051-8/+8
| | | | | | | | AV_LOG_DEBUG is forced by the av_dlog definition.
* | matroska : Add support for reading/writing creation_time metadata.Aaron Colwell2012-03-052-1/+24
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cook: fix return statements.Michael Niedermayer2012-03-051-1/+2
| | | | | | | | | | Found-by: cbsrobot Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | wmaenc: change some asserts to av_assert0.Michael Niedermayer2012-03-051-2/+2
| | | | | | | | | | | | This ensures they are always checked Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | wmaenc: add assert to check encode_superframe() return.Michael Niedermayer2012-03-051-0/+2
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Revert "wmaenc: check final frame size against output packet size"Michael Niedermayer2012-03-051-6/+4
| | | | | | | | | | | | | | | | This condition cannot happen, if it can it is a bug that MUST be fixed. And i very happily volunteer to fix it if someone reports a case to me that fails. This reverts commit 5d652e063bd3a180f9de8915e5137aa4f938846d.
* | alsa: fix timefilter usage.Nicolas George2012-03-052-1/+3
| | | | | | | | | | The period argument is supposed to be the number of samples since the last update.
* | timefilter: allow variable periods.Nicolas George2012-03-051-2/+2
| | | | | | | | Initially found and designed by Michael Niedermayer.
* | timefilter: internally compute feedback factors.Nicolas George2012-03-054-17/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The feedback factors for the timefilter are directly computed from the expected period. This commit changes the init function to accept the period itself and compute the feedback factors internally, rather than having all client code duplicate the formulas. This commit also actually fixes the formulas: the current code had sqrt(2*o), but the correct formula, both theoretically and according to experimental testing, is sqrt(2)*o. Furthermore, it adds an exponential to feedback factors larger than 1 with large periods.
* | smc: Fix overread.Michael Niedermayer2012-03-051-1/+1
| | | | | | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | bit_depth_template: use av_clip_uint8 over crop_tab.Michael Niedermayer2012-03-051-2/+2
| | | | | | | | | | | | | | | | | | | | This fixes some global out of array reads and wrong cliping. No speed difference meassurable under clang on i5 also all important code paths on all important platforms should use SIMD. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | indeo3: move MV check up.Michael Niedermayer2012-03-051-7/+13
| | | | | | | | | | | | | | This adds checking for modes >= 10. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | cook: check decouple values.Michael Niedermayer2012-03-051-4/+12
| | | | | | | | | | | | | | This fixes a out of global array read in the cplscale* tables. 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-0529-922/+1062
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * qatar/master: (27 commits) cmdutils: use new avcodec_is_decoder/encoder() functions. lavc: make codec_is_decoder/encoder() public. lavc: deprecate AVCodecContext.sub_id. libcdio: add a forgotten AVClass to the private context. swscale: remove "cpu flags" from -sws_flags description. proresenc: give user a possibility to alter some encoding parameters vorbisenc: add output buffer overwrite protection libopencore-amrnbenc: fix end-of-stream handling ra144enc: fix end-of-stream handling nellymoserenc: zero any leftover packet bytes nellymoserenc: use proper MDCT overlap delay qpeg: Use bytestream2 functions to prevent buffer overreads. swscale: make %rep unconditional. vp8: convert simple loopfilter x86 assembly to use named arguments. vp8: convert idct x86 assembly to use named arguments. vp8: convert mc x86 assembly to use named arguments. vp8: convert loopfilter x86 assembly to use cpuflags(). vp8: convert idct/mc x86 assembly to use cpuflags(). swscale: remove now unnecessary hack. x86inc: don't "bake" stack_offset in named arguments. ... Conflicts: cmdutils.c doc/APIchanges libavcodec/mpeg12.c libavcodec/options.c libavcodec/qpeg.c libavcodec/utils.c libavcodec/version.h libavdevice/libcdio.c tests/lavf-regression.sh Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * cmdutils: use new avcodec_is_decoder/encoder() functions.Anton Khirnov2012-03-041-2/+2
| | | | | | | | Fixes listing encoders.
| * lavc: make codec_is_decoder/encoder() public.Anton Khirnov2012-03-044-10/+23
| |
| * lavc: deprecate AVCodecContext.sub_id.Anton Khirnov2012-03-049-32/+32
| | | | | | | | | | | | | | In most places where it's used, it's as a pointless write-only field. Only rv10 decoder actually reads from it, but it stores some internal version info in it. There is no reason for it to be in a public field.
| * libcdio: add a forgotten AVClass to the private context.Anton Khirnov2012-03-041-0/+1
| |
| * swscale: remove "cpu flags" from -sws_flags description.Ronald S. Bultje2012-03-041-1/+1
| |
| * proresenc: give user a possibility to alter some encoding parametersKostya Shishkov2012-03-041-56/+122
| | | | | | | | | | This allows user to select quantisation matrix from different profile, stamp frames with custom vendor string and change target bitrate.
| * vorbisenc: add output buffer overwrite protectionJustin Ruggles2012-03-041-16/+43
| |
| * libopencore-amrnbenc: fix end-of-stream handlingJustin Ruggles2012-03-041-1/+27
| | | | | | | | | | | | Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush the encoder at the end of encoding. This is needed in order to have all input samples decoded.
| * ra144enc: fix end-of-stream handlingJustin Ruggles2012-03-042-8/+26
| | | | | | | | | | | | Use CODEC_CAP_DELAY and CODEC_CAP_SMALL_LAST_FRAME to properly pad and flush the encoder at the end of encoding. This is needed in order to have all input samples decoded.
| * nellymoserenc: zero any leftover packet bytesJustin Ruggles2012-03-041-0/+1
| | | | | | | | fixes writing of uninitialized packet data
| * nellymoserenc: use proper MDCT overlap delayJustin Ruggles2012-03-041-27/+21
| |
| * qpeg: Use bytestream2 functions to prevent buffer overreads.Aneesh Dogra2012-03-031-43/+44
| | | | | | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
| * swscale: make %rep unconditional.Ronald S. Bultje2012-03-031-4/+7
| | | | | | | | Fixes pre-processing with latest versions of nasm.
| * vp8: convert simple loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-031-25/+30
| |
| * vp8: convert idct x86 assembly to use named arguments.Ronald S. Bultje2012-03-031-97/+103
| |