summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix format string vulnerability detected by -Wformat-security.Fabian Greffrath2012-03-05
| | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* dv: Do not redundantly initialize struct members to zero.Diego Biurrun2012-03-05
|
* x86: clean up ff_dsputil_init_mmx()Mans Rullgard2012-03-05
| | | | | | | | 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>
* cmdutils: use new avcodec_is_decoder/encoder() functions.Anton Khirnov2012-03-04
| | | | Fixes listing encoders.
* lavc: make codec_is_decoder/encoder() public.Anton Khirnov2012-03-04
|
* lavc: deprecate AVCodecContext.sub_id.Anton Khirnov2012-03-04
| | | | | | | 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-04
|
* swscale: remove "cpu flags" from -sws_flags description.Ronald S. Bultje2012-03-04
|
* proresenc: give user a possibility to alter some encoding parametersKostya Shishkov2012-03-04
| | | | | 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-04
|
* libopencore-amrnbenc: fix end-of-stream handlingJustin Ruggles2012-03-04
| | | | | | 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-04
| | | | | | 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-04
| | | | fixes writing of uninitialized packet data
* nellymoserenc: use proper MDCT overlap delayJustin Ruggles2012-03-04
|
* qpeg: Use bytestream2 functions to prevent buffer overreads.Aneesh Dogra2012-03-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* swscale: make %rep unconditional.Ronald S. Bultje2012-03-03
| | | | Fixes pre-processing with latest versions of nasm.
* vp8: convert simple loopfilter x86 assembly to use named arguments.Ronald S. Bultje2012-03-03
|
* vp8: convert idct x86 assembly to use named arguments.Ronald S. Bultje2012-03-03
|
* vp8: convert mc x86 assembly to use named arguments.Ronald S. Bultje2012-03-03
|
* vp8: convert loopfilter x86 assembly to use cpuflags().Ronald S. Bultje2012-03-03
|
* vp8: convert idct/mc x86 assembly to use cpuflags().Ronald S. Bultje2012-03-03
|
* swscale: remove now unnecessary hack.Ronald S. Bultje2012-03-03
|
* x86inc: don't "bake" stack_offset in named arguments.Loren Merritt2012-03-03
| | | | Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
* fate: Add sunrast regression testDerek Buitenhuis2012-03-03
| | | | | Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* wmaenc: fix m/s stereo encoding for the first frameJustin Ruggles2012-03-03
| | | | | | | | We need to set ms_stereo in encode_init() in order to avoid incorrectly encoding the first frame as non-m/s while flagging it as m/s. Fixes an uncomfortable pop in the left channel at the start of playback. CC:libav-stable@libav.org
* wmaenc: return s->block_align instead of recalculating itJustin Ruggles2012-03-03
|
* wmaenc: check final frame size against output packet sizeJustin Ruggles2012-03-03
| | | | | | | Currently we have an assert() that prevents the frame from being too large, but it is more user-friendly to give an error message instead of aborting on assert(). This condition is quite unlikely due to the minimum bit rate check in encode_init(), but it is still worth having.
* wmaenc: require a large enough output buffer to prevent overwritesJustin Ruggles2012-03-03
| | | | | | | | The maximum theoretical frame size is around 17000 bytes. Although in practice it will generally be much smaller, we require a larger buffer just to be safe. CC: libav-stable@libav.org
* wmaenc: limit allowed sample rate to 48kHzJustin Ruggles2012-03-03
| | | | | | | | | ff_wma_init() allows up to 50kHz, but this generates an exponent band size table that requires 65 bands. The code assumes 25 bands in many places, and using sample rates higher than 48kHz will lead to buffer overwrites. CC:libav-stable@libav.org
* wmaenc: limit block_align to MAX_CODED_SUPERFRAME_SIZEJustin Ruggles2012-03-03
| | | | | | | | | | This is near the theoretical limit for wma frame size and is the most that our decoder can handle. Allowing higher bit rates will just end up padding each frame with empty bytes. Fixes invalid writes for avconv when using very high bit rates. CC:libav-stable@libav.org
* tiertexseq: set correct block_align for audioJustin Ruggles2012-03-03
|
* tiertexseq: set audio stream start time to 0Justin Ruggles2012-03-03
| | | | | Update FATE test to reflect delayed video due to the file having audio-only frames prior to the first frame with video.
* voc/avs: Do not change the sample rate mid-stream.Justin Ruggles2012-03-03
| | | | | Also, set the time base based on the sample rate. lavf-voc seek test updated to reflect slightly different seek points.
* segafilm: use the sample rate as the time base for audio streamsJustin Ruggles2012-03-03
|
* ea: fix audio ptsJustin Ruggles2012-03-03
| | | | | | | The time base is 1 / sample_rate, not 90000. Several more codecs encode the sample count in the first 4 bytes of the chunk, so we set the durations accordingly. Also, we can set start_time and packet duration instead of keeping track of the sample count in the demuxer.
* psx-str: fix audio ptsJustin Ruggles2012-03-03
| | | | Each packet has 18 sectors with 224/channels samples in each sector.
* vqf: set packet durationJustin Ruggles2012-03-03
| | | | | | Fixes timestamp calculation. The FATE reference is updated because timestamp calculations are now more accurate. Previous timestamps were based on average bit rate.
* tta demuxer: set packet durationJustin Ruggles2012-03-03
|
* mpegaudio_parser: do not ignore information from the first parsed frameJustin Ruggles2012-03-03
| | | | Update some demuxing and seeking fate tests.
* mpegaudio_parser: be less picky about the start positionMichael Niedermayer2012-03-03
| | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* thp: set audio packet durationsJustin Ruggles2012-03-03
|
* avcodec: add a Vorbis parser to get packet durationJustin Ruggles2012-03-03
| | | | This also allows for removing some of the Vorbis-related hacks.
* vorbisdec: read the previous window flag for long windowsJustin Ruggles2012-03-03
| | | | | | When reading sequentially, we are using the actual flag from the previous frame, but when seeking we do not know what the previous window flag was, so we need to read it from the bitstream.
* lavc: free the output packet when encoding failed or produced no output.Anton Khirnov2012-03-03
|
* lavc: preserve avpkt->destruct in ff_alloc_packet().Anton Khirnov2012-03-03
| | | | | Also, don't bother with saving/restoring data, av_init_packet doesn't touch it.
* lavc: clarify the meaning of AVCodecContext.frame_number.Anton Khirnov2012-03-03
|
* mpegts: Pad the packet buffer in handle_packet().Alex Converse2012-03-02
| | | | | | | This allows it to be used with get_bits without the thread of overreads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* mpegts: Do not call read_sl_header() when no bytes remain in the buffer.Alex Converse2012-03-02
| | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* amrwb: remove duplicate arguments from extrapolate_isf().Ronald S. Bultje2012-03-02
| | | | | | | | Prevents warnings because the dst and src overlap (are the same) in the memcpy() inside the function. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org
* amrwb: error out early if mode is invalid.Ronald S. Bultje2012-03-02
| | | | | | | | Prevents using the invalid mode as an index in a static array, which would generate invalid reads. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind CC: libav-stable@libav.org