summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* ARM: use 2-operand syntax for ADD Rd, PC in Apple PIC codeMans Rullgard2012-09-21
| | | | | | | The Apple assembler refuses to assemble the 3-operand form in Thumb2 even though it is valid syntax. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: align PIC offset pools to 4 bytesMans Rullgard2012-09-21
| | | | | | | | | When building Thumb2 code, the end of a function, where the PIC offsets are placed, need not be aligned. Although the values are only accessed with instructions allowing unaligned addresses, keeping them aligned is preferable. Signed-off-by: Mans Rullgard <mans@mansr.com>
* ARM: swap source operands in some add instructionsMans Rullgard2012-09-20
| | | | | | This allows using a 16-bit opcode when generating Thumb2 code. Signed-off-by: Mans Rullgard <mans@mansr.com>
* configure: update tms470 detection for latest versionMans Rullgard2012-09-20
| | | | | | | | v5.0 of the TI ARM compiler changes the version string. This updates the detection to check for both the old and the new strings. Signed-off-by: Mans Rullgard <mans@mansr.com>
* lavf probe: prevent codec probe with no data at all seenJanne Grunau2012-09-20
| | | | | | This occurs with fuzzed mpeg-ts files. set_codec_from_probe_data() is called with a zeroed AVProbeData since no packet made through for specific stream.
* motion_est: fix use of inline on extern functionsMans Rullgard2012-09-20
| | | | | | | | | | | | | | | | | | Inline functions declared without extern do not provide an external definition in standard C99. This code only works because most compilers do not implement the inline semantics correctly. With a stricter compiler, linking fails with unresolved references to these functions. Declaring the functions extern inline works correctly with some compilers while some others still fail to create external definitions. For maximum portability, create a static inline version with an externally visible wrapper for ff_get_mb_score. ff_epzs_motion_search is so large that no sane compiler inlines it anyway, so there the inline keyword can simply be dropped with no effect. Signed-off-by: Mans Rullgard <mans@mansr.com>
* mp3dec: read Xing frame TOC indexAnton Khirnov2012-09-19
|
* mp3dec: use named constants for Xing header flagsAnton Khirnov2012-09-19
|
* libx264: add support for nal-hrd, required for Blu-ray streams.John Van Sickle2012-09-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mov: support random access point groupingYusuke Nakamura2012-09-19
| | | | | | | | | Frames described by this grouping are the starter of a closed or an open GOP. This is useful for open GOP of H.264 stream which is not described by sync sample atom. Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* matroskadec: properly support BlockDurationLuca Barbato2012-09-19
|
* matroskadec: split frame parsingLuca Barbato2012-09-19
|
* matroskadec: split laces parsingLuca Barbato2012-09-19
|
* matroska: implement support for ProResLuca Barbato2012-09-19
| | | | | | | | Support Matroska native formatting. On demuxing prepend a Frame container atom (32bit big endian encoded frame size and 'icpf' string). On muxing remove it.
* matroska: implement support for ALACMoritz Bunkus2012-09-19
| | | | | | | | | | | | | | | | | | Support Matroska native formatting. On demuxing reconstruct the 36-bytes QuickTime atom that the ALAC decoder expects by prepending the "atom size", "tag" and "tag version" fields missing from the Matroska's CodecPrivate element. On muxing remove the initial 12 bytes Sample files are available: http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska.mka and the CoreAudio file it was created from with today's mkvmerge: http://www.bunkus.org/videotools/mkvtoolnix/samples/alac/alac-in-matroska-source.caf Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* matroskadec: validate lace_size when parsedLuca Barbato2012-09-19
| | | | | Stricter validation, explicitly exit on misparsing and some error forwarding from the ebml parsing functions used.
* matroskadec: return meaningful errors in matroska_decode_bufferLuca Barbato2012-09-19
|
* matroskadec: fix incorrect unsigned->signed conversionDale Curtis2012-09-19
|
* matroskadec: refactor matroska_decode_bufferLuca Barbato2012-09-19
| | | | | Make MATROSKA_TRACK_ENCODING_COMP_HEADERSTRIP behave like the other encodings and spare few lines of boilerplate code.
* matroskadec: check realloc in lzo encodingLuca Barbato2012-09-19
| | | | Make all the compression encodings behave the same way.
* matroska: honor error_recognition on unknown doctypesLuca Barbato2012-09-19
|
* tiffdec: Add support for GRAY16LE.Alex Converse2012-09-19
| | | | Tested with the GraphicsMagick TIFF archive and Libav generated files.
* tiffenc: Add support for little endian RGB48 and GRAY16Alex Converse2012-09-19
|
* 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
|