summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* mpeg4: support frame parameter changes with frame-mtJanne Grunau2012-09-19
| | | | | | | Adds a flag context_reinit to MpegEncContext to relieable keep track of frame parameter changes which require a context reinitialization. This is required for broken inputs which change the frame size but error out before the context can be reinitialized.
* mpegvideo: check ff_find_unused_picture() return value for errorsJanne Grunau2012-09-19
|
* mpegvideo: release frame buffers before freeing themJanne Grunau2012-09-19
| | | | | Fixes triggering an assert in avcodec_default_release_buffer() introduced in 1b3439b30.
* configure: msvc: default to 'lib' as 'ar' toolMans Rullgard2012-09-19
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* build: support some non-standard ar variantsMans Rullgard2012-09-19
| | | | | | | This adds support for the TI and Microsoft (lib.exe) variants of the ar utility. Signed-off-by: Mans Rullgard <mans@mansr.com>
* rv34: use ff_MPV_common_frame_size_change()Janne Grunau2012-09-19
| | | | | Specialised functionality for size changes with the advantage of supporting frame size changes during frame-based multithreading.
* mpegvideo: add reinit function for frame parameter changesJanne Grunau2012-09-19
| | | | | | This is mainly required for frame parameter changes during frame based multithreading but single threaded usage profits too from avoiding ff_MPV_common_end()/ff_MPV_common_init() cycles.
* mpegvideo: move frame size dependent memory management to separate functionsJanne Grunau2012-09-19
| | | | | This is a preparation for supporting frame size changes during frame-based multithreading.
* configure: add --toolchain optionMans Rullgard2012-09-18
| | | | | | | This allows creating canned shorthands for common combinations of cc, ld etc. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: Make the smoothstreaming muxer enable the ismv muxerMartin Storsjö2012-09-18
| | | | | | | This doesn't fix any build failure, but the smoothstreaming muxer opens a chained ismv muxer. Signed-off-by: Martin Storsjö <martin@martin.st>
* smoothstreaming: Export the mp4 codec tagsMartin Storsjö2012-09-18
| | | | | | | | | This fixes stream copy from a format that already has incompatible codec tags set. The chained ismv muxer exports this same codec tag list, so set it on this one as well, to allow the caller (and lavf common code) to set them correctly. Signed-off-by: Martin Storsjö <martin@martin.st>
* mov: check for EOF in long lasting loopsLuca Barbato2012-09-18
| | | | | | | A quite widespread pattern in the demuxer is read a 32bit unsigned integer and then loop till this value is reached. Checking for EOF prevents pathological situations.
* avcodec: cleanup utils.cLuca Barbato2012-09-18
|
* binkaudio: remove unneeded GET_BITS_SAFE macroJustin Ruggles2012-09-18
| | | | Normal get_bits() already has overread protection.
* binkaudio: use float sample formatJustin Ruggles2012-09-18
| | | | Use planar for DCT codec, interleaved for RDFT codec.
* binkaudio: use a different value for the coefficient scale for the DCT codecJustin Ruggles2012-09-18
| | | | Eliminates the need for vector_fmul_scalar() in each frame.
* flvenc: silence bogus warningBenjamin Larsson2012-09-18
| | | | | | | | | The compiler fails to figure out that enc->codec_type can only have 3 different values. Thus when an if/else is encountered it triggers on the possibility of the else case has not initialized the flags variable. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* configure: include flags in nm variableMans Rullgard2012-09-17
| | | | | | | This simplifies ensuring proper flags are used when the default is overridden by the system or on the command line. Signed-off-by: Mans Rullgard <mans@mansr.com>
* alsdec: fix misplaced parentheses.Clément Bœsch2012-09-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: check return values.Thilo Borgmann2012-09-17
| | | | Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: fix number of decoded samples in first sub-block in BGMC mode.Thilo Borgmann2012-09-17
| | | | | | | | Fixes CVE-2012-2790 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Fix out of ltp_gain_values read.Thilo Borgmann2012-09-17
| | | | | | Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Check that quantized parcor coeffs are within range.Michael Niedermayer2012-09-17
| | | | | | | | | | | 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 <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: check opt_order.Michael Niedermayer2012-09-17
| | | | | | | | | | | Fixes out of array write in quant_cof. Also make sure no invalid opt_order stays in the context. Fixes CVE-2012-2775 Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* alsdec: Check k used for rice decoder.Michael Niedermayer2012-09-17
| | | | | | | Values that fail this check will cause failure of decode_rice() Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
* avfiltergraph: silence an uninitialized variable warningAnton Khirnov2012-09-17
| | | | | | | | | | The warning is: libavfilter/avfiltergraph.c: In function ‘avfilter_graph_config’: libavfilter/avfiltergraph.c:528:9: warning: ‘best_idx’ may be used uninitialized in this function [-Wuninitialized] libavfilter/avfiltergraph.c:479:13: note: ‘best_idx’ was declared here Initialize it to an invalid value and add an assert that it's properly set later.
* xsubenc: reindentAnton Khirnov2012-09-17
|
* lavc: replace AVCodecContext.encode with subtitle-specific callbackAnton Khirnov2012-09-17
| | | | | AVCodecContext.encode is currently used only for subtitles, encode2 is used for audio and video.
* lavc: add const to private codec class initialization.Anton Khirnov2012-09-17
| | | | Silences a warning about discarding const.
* avconv: don't pass a bogus parameter to avfilter_graph_create_filter().Anton Khirnov2012-09-17
| | | | | | The buffer sink does not take any parameters. Fixes an uninitialized variable warning.
* id3v2: strdup the genre name explicitly.Clément Bœsch2012-09-17
| | | | | | | | | It would have been done anyway in the av_dict_set() call. This simplifies the code and avoid a warning because of assigning a const string from ff_id3v1_genre_str to a non-const variable. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavf/id3v2: do not export empty fields.Clément Bœsch2012-09-17
| | | | | | This also avoids a memleak. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* buffersrc: add const to the AVFrame* argument of av_buffersrc_write_frame()Anton Khirnov2012-09-17
|
* lavfi: replace empty input/output lists with null pointersMans Rullgard2012-09-17
| | | | Signed-off-by: Mans Rullgard <mans@mansr.com>
* avconv: flush filtered frames before reconfiguring filtersJanne Grunau2012-09-17
| | | | This prevents lost frames after a resolution change.
* mov: stsd entries must be at least 16 byteMichael Niedermayer2012-09-16
| | | | | | | | | | Fix near infinite loop in stsd parsing. Bug found by: Diana Elena Muscalu The size is unsigned according the specification. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* mov: detect EOF in mov_read_dref()Michael Niedermayer2012-09-16
| | | | | | | | Avoid a near infinite loop. Issue discovered by cosminamironesei. Signed-off-by: Michael Niedermayer <michaelni@gmx.at> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* file: return proper error on seek failuresLuca Barbato2012-09-16
|
* mpegvideo: drop unnecessary arguments to hpel_motion()Mans Rullgard2012-09-16
| | | | | | | These arguments are either constants or copies of MpegEncContext fields just as easily accessed within the function. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mpegvideo: drop 'inline' from some functionsMans Rullgard2012-09-16
| | | | | | | These functions do not benefit from being inlined. They are large, and there are no opportunities for constant propagation. Signed-off-by: Mans Rullgard <mans@mansr.com>
* nellymoserdec: drop support for s16 output.Anton Khirnov2012-09-16
| | | | | It internally decodes as float and then converts to s16 by a call to float_to_int16(). The caller can do this just as well by using lavr.
* bmpdec: only initialize palette for pal8.Anton Khirnov2012-09-16
| | | | | | | | | Gray8 is not considered to be paletted, so this would cause an invalid write. Fixes bug 367. CC: libav-stable@libav.org
* build: Properly remove object files while cleaningMans Rullgard2012-09-15
| | | | | | | Previously, object files in, for example, compat/ were left after a clean or distclean was run. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* flacdsp: arm optimised lpc filterMans Rullgard2012-09-15
|
* compat/vsnprintf: return number of bytes required on truncation.Ronald S. Bultje2012-09-15
| | | | | | This conforms to C99, but requires Windows >= XP. Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
* avformat: fix typo in avformat_close_inputLuca Barbato2012-09-15
| | | | The condition should not be &&.
* mp3enc: write Xing TOCAnton Khirnov2012-09-15
| | | | | | | | | | | | Based on the code by: Peter Belkner <pbelkner@snafu.de>, Michael Niedermayer <michaelni@gmx.at>, Clément Bœsch <clement.boesch@smartjog.com>, Reimar Döffinger <Reimar.Doeffinger@gmx.de>, and Tobias Rapp <t.rapp@noa-audio.com> Alex Converse <alex.converse@gmail.com> Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mp3enc: support MPEG-2 and MPEG-2.5 in Xing header.Clément Bœsch2012-09-15
|
* mp3enc: downgrade some errors in writing Xing frame to warningsReimar Döffinger2012-09-15
| | | | Also clarify the meaning of the log message.
* lavf: flush the output AVIOContext in av_write_trailer().Anton Khirnov2012-09-15
| | | | | | | This is consistent with stdio and is what we want to do in all cases. Fixes a bug in the voc muxer which didn't flush in write_trailer() previously. This is the cause of the change in the test results.