summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* lavc: remove disabled FF_API_OLD_ENCODE_AUDIO cruftAnton Khirnov2013-03-09
|
* lavc: remove disabled FF_API_OLD_DECODE_AUDIO cruftAnton Khirnov2013-03-09
|
* png: use av_mallocz_array() for the zlib zalloc functionJustin Ruggles2013-03-08
| | | | | | Fixes valgrind uninitialized memory errors when decoding png. CC:libav-stable@libav.org
* libmp3lame: use the correct remaining buffer size when flushingJustin Ruggles2013-03-08
| | | | CC:libav-stable@libav.org
* lavc: update the fallback versions of ff_thread_*Anton Khirnov2013-03-08
| | | | | Fixes build without threads after 759001c534287a96dc96d1e274665feb7059145d.
* libopencore-amr: Add the missing 3rd argument of ff_get_buffer()Yusuke Nakamura2013-03-08
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* vmdaudio: fix invalid reads when packet size is not a multiple of chunk sizeAnton Khirnov2013-03-08
| | | | CC:libav-stable@libav.org
* wmaprodec: return an error, not 0, when the input is too small.Anton Khirnov2013-03-08
| | | | | | | Returning 0 may result in an infinite loop in valid calling programs. A decoder should never return 0 without producing any output. CC:libav-stable@libav.org
* wmaprodec: require block_align to be set.Anton Khirnov2013-03-08
| | | | | | | Avoids an infinite loop in the calling programs with decoder not consuming any input and not returning output. CC:libav-stable@libav.org
* wmadec: require block_align to be set.Anton Khirnov2013-03-08
| | | | | | | Avoids an infinite loop in the calling programs with decoder not consuming any input and not returning output. CC:libav-stable@libav.org
* ivi_common: do not call MC for intra frames when dc_transform is unsetAnton Khirnov2013-03-08
| | | | CC:libav-stable@libav.org
* roqvideodec: fix a potential infinite loop in roqvideo_decode_frame().Anton Khirnov2013-03-08
| | | | | | | | When there is just 1 byte remanining in the buffer, nothing will be read and the loop will continue forever. Check that there are at least 8 bytes, which are always read at the beginning. CC:libav-stable@libav.org
* xxan: fix invalid memory access in xan_decode_frame_type0()Anton Khirnov2013-03-08
| | | | | | | | The loop a few lines below the xan_unpack() call accesses up to dec_size * 2 bytes into y_buffer, so dec_size must be limited to buffer_size / 2. CC:libav-stable@libav.org
* ffv1: fix calculating slice dimensions for version 2Anton Khirnov2013-03-08
| | | | | | It got broken in 0f13cd3187192ba0cc2b043430de6e279e7b97c3. CC:libav-stable@libav.org
* eamad: allocate a dummy reference frame when the real one is missingAnton Khirnov2013-03-08
| | | | CC:libav-stable@libav.org
* Replace some forgotten instances of PIX_FMT_* with AV_PIX_FMT_*.Anton Khirnov2013-03-08
|
* Add the bumps and APIchanges entries for reference counted buffers changes.Anton Khirnov2013-03-08
|
* lavc: postpone the removal of request_channels API.Anton Khirnov2013-03-08
| | | | Its replacement is still not ready.
* lavc: stop setting AVFrame.motion_subsample_log2Anton Khirnov2013-03-08
| | | | | It is not used inside lavc anywhere and now it makes no sense to export it.
* mpegvideo: drop vismv codeAnton Khirnov2013-03-08
| | | | | It has been broken for over a year without anyone complaining or noticing, thus proving that nobody ever uses it.
* lavc: make up a fake frame channel layout when there is no real one.Anton Khirnov2013-03-08
| | | | | This should ensure that a valid channel layout is always set on a frame, until a better solution is implemented.
* lavc: limit maximum number of channels to 63Anton Khirnov2013-03-08
| | | | | | This is the most that can be represented with the current channel layout system. This limit should be raised/removed when a better system is implemented.
* lavc: allow decoders to override frame parameters.Anton Khirnov2013-03-08
|
* lavc decoders: properly initialize AVFrame.Anton Khirnov2013-03-08
|
* lavc decoders: work with refcounted frames.Anton Khirnov2013-03-08
|
* mpegvideo_enc: drop support for reusing the input motion vectors.Anton Khirnov2013-03-08
| | | | | | This misfeature is most likely completely useless and conflicts with removing the mpegvideo-specific fields from AVFrame. In the improbable case it is actually useful, it should be reimplemented in a better way.
* Move AVFrame from lavc to lavu.Anton Khirnov2013-03-08
| | | | Add AVBuffer-based reference counting API to it.
* lavc: move AVFrame.hwaccel_picture_private to Picture.Anton Khirnov2013-03-08
| | | | | This field is private and should not be present in a public struct. It is only used in DXVA with mpegvideo-based decoders currently.
* pthread: avoid copying input packets when possible.Anton Khirnov2013-03-08
|
* avpacket: use AVBuffer to allow refcounting the packets.Anton Khirnov2013-03-08
| | | | | | This will allow us to avoid copying the packets in many cases. This breaks ABI.
* mp3dec: Fix VBR bit rate parsingAlexander Kojevnikov2013-03-08
| | | | | | | | | | | | When parsing the Xing/Info tag, don't set the bit rate if it's an Info tag. When parsing the stream, don't override the bit rate if it's already set, otherwise calculate the mean bit rate from parsed frames. This way, the bit rate will be set correctly both for CBR and VBR streams. CC:libav-stable@libav.org Signed-off-by: Anton Khirnov <anton@khirnov.net>
* build: cosmetics: Group hw accelerator Makefile entries togetherDiego Biurrun2013-03-07
|
* Add missing error_resilience includes to files that use ERDiego Biurrun2013-03-07
|
* mpegvideo: Conditionally build error_resilience bitsMartin Storsjö2013-03-07
| | | | | This breaks the dependency of mpegvideo on error_resilience allowing compilation of components that depend on the former w/o the latter.
* Use the avstring.h locale-independent character type functionsReimar Döffinger2013-03-07
| | | | | | Make sure the behavior does not change with the locale. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Deprecate the deinterlace functions in libavcodecRonald S. Bultje2013-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: Integrate draw_horiz_band into ff_h264_draw_horiz_bandRonald S. Bultje2013-03-07
| | | | | | | | | | This makes the decoder independent of mpegvideo. This copy of the draw_horiz_band code is simplified compared to the "generic" mpegvideo one which still has a number of special cases for different codecs. Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Prettify printing of codec tags containing non alphanumeric charactersStefano Sabatini2013-03-07
| | | | | | | | | | | | | Make av_get_codec_tag_string() show codec tag string characters in a more intelligible ways. For example the ascii char "@" is used as a number, so should be displayed like "[64]" rather than as a printable character. Apart alphanumeric chars, only the characters ' ' and '.' are used literally in codec tags, all the other characters represent numbers. This also avoids relying on locale-dependent character class functions. Signed-off-by: Martin Storsjö <martin@martin.st>
* h264: Rename the jpeg_420 pixfmt list to match the common naming structureMartin Storsjö2013-03-07
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* lavc: Split out ff_hwaccel_pixfmt_list_420[] over individual codecsRonald S. Bultje2013-03-06
| | | | | | | | | Not all hwaccels implement all codecs, so using one single list for multiple such codecs means some codecs will be represented in the list, even though they don't actually handle that codec. Copying specific lists in each codec fixes that. Signed-off-by: Martin Storsjö <martin@martin.st>
* avcodec/internal: Fix #if DECODE_AUDIO / ENCODE_AUDIO name mismatchDiego Biurrun2013-03-06
|
* shorten: use the unsigned type where neededLuca Barbato2013-03-06
| | | | | | get_uint returns an unsigned value, use an unsigned to store blocksize to make sure the comparison logic is correct and report correctly the error for the channel count not supported.
* shorten: report meaningful errorsLuca Barbato2013-03-06
|
* shorten: K&R formatting cosmeticsLuca Barbato2013-03-06
|
* shorten: set invalid channels count to 0Michael Niedermayer2013-03-06
| | | | | | | | Prevent the loop shorten_decode_close from writing and freeing out of the array boundary. Found-by: Mateusz "j00ru" Jurczyk and Gynvael Coldwind Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* vorbisdec: check memory allocationsLuca Barbato2013-03-06
|
* h264: check for luma and chroma bit dept being equalLuca Barbato2013-03-05
| | | | | | | | | | The decoder assumes a single bit depth for all the planes while the specification allows different bit depths for luma and chroma. Avoid the possible problems described in CVE-2013-2277 CC: libav-stable@libav.org
* hwaccel: consistent name prefixes for start_frame/end_frame/decode_sliceDiego Biurrun2013-03-05
| | | | | Some hwaccels use name prefixes, some do not, others only use them for some codecs. Add prefixes everywhere for consistency.
* h264: set ref_count to 0 for intra slices.Anton Khirnov2013-03-02
| | | | CC:libav-stable@libav.org
* h264: on reference overflow, reset the reference count to 0, not 1.Anton Khirnov2013-03-02
| | | | | | | Since decode_slice_header() returns before the reference lists are constructed, there are zero valid references. CC:libav-stable@libav.org