summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* lavc: use av_mallocz to allocate AVFrames.Anton Khirnov2012-09-24
| | | | | Otherwise the frame is uninitialized, so avcodec_get_frame_defaults() cannot determine whether to free extended_data.
* lavc: rename the argument of avcodec_alloc_frame/get_frame_defaultsAnton Khirnov2012-09-24
| | | | | AVFrame is used for both audio and video, so calling the argument 'pic' is misleading.
* rtp: Packetization of JPEG (RFC 2435)Samuel Pitoiset2012-09-23
|
* smoothstreamingenc: Copy the SAR on the AVStreams as wellMartin Storsjö2012-09-23
| | | | | | This is required in chained muxers, if the SAR happens to be set. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec: fix memleak in avcodec_encode_audio2()Justin Ruggles2012-09-22
| | | | Ensure that padded_frame is freed before returning when needed.
* sipr: fall back to setting mode based on bit_rate.Reimar Döffinger2012-09-21
| | | | | | | | | | | | | | Not all applications (e.g. MPlayer) set block_align, and when using a different demuxer it might not even be easily available. So fall back to selecting mode based on bit rate as before if block_align has not useful value. It can't be worse than failing to decode completely. (cherry picked from commit 1d0d63052b82c76e10c45cd38cdd27677de72e81) CC: libav-stable@libav.org Signed-off-by: Reinhard Tartler <siretart@tauware.de>
* libx264: add forgotten ;Anton Khirnov2012-09-21
|
* matroskadec: fix a sanity check.Anton Khirnov2012-09-21
|
* matroskadec: only return corrupt packets that actually contain dataAnton Khirnov2012-09-21
| | | | Fixes bug 372.
* lavf: zero data/size of the packet passed to read_packet().Anton Khirnov2012-09-21
|
* 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>