summaryrefslogtreecommitdiff
path: root/libavcodec
Commit message (Collapse)AuthorAge
* lavc: Move start code finding to utils.cMartin Storsjö2013-03-26
| | | | | | | | | | This allows dropping the mpegvideo dependency from a number of components. This also fixes standalone building of the h264 parser, which was broken in 64e438697. Signed-off-by: Martin Storsjö <martin@martin.st>
* ape: 3.80-3.92 decoding supportKostya Shishkov2013-03-25
|
* h264: Remove an unused variableMartin Storsjö2013-03-25
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: consistently use unaligned movs in the unaligned bswapJanne Grunau2013-03-25
| | | | Fixes fate errors in asv1, ffvhuff and huffyuv on x86_32.
* x86: Change a missed occurrance of int to ptrdiff_t for stridesMartin Storsjö2013-03-24
| | | | Signed-off-by: Martin Storsjö <martin@martin.st>
* x86: Remove win64 xmm clobbering wrappers for the now removed ↵Martin Storsjö2013-03-23
| | | | | | avcodec_encode_video function Signed-off-by: Martin Storsjö <martin@martin.st>
* tscc2: allocate AVFrame properly.Anton Khirnov2013-03-22
|
* h264: remove redundant freeing of DPB in h264_decode_endAnton Khirnov2013-03-21
| | | | free_tables() frees it already.
* h264: add a parameter to the CHROMA444 macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the CHROMA422 macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the CABAC macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the FIELD_OR_MBAFF_PICTURE macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the FIELD_PICTURE macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the FRAME_MBAFF macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the MB_FIELD macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: add a parameter to the MB_MBAFF macro.Anton Khirnov2013-03-21
| | | | This way it does not look like a constant.
* h264: merge common_init() into ff_h264_decode_init.Anton Khirnov2013-03-21
| | | | There is no point in keeping those separate.
* h264: make ff_h264_frame_start static.Anton Khirnov2013-03-21
| | | | It is not called from outside h264.c
* h264: fix bit depth changes with frame threadingJanne Grunau2013-03-20
| | | | | | | | | AVCodecContext.bits_per_raw_sample is updated from the previous thread in the generic update function before the codec specific update_thread function is called. The check for reinitialization of dsp functions uses bits_per_raw_sample. When called from update_thread_context it will be already at the current value and the dsp functions aren't updated if only the bit depth changes.
* mpegvideo: allocate hwaccel privdata after the frame bufferHendrik Leppkes2013-03-19
| | | | | | | | | | This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when moving between displays. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* h264: allocate hwaccel privdata after the frame bufferHendrik Leppkes2013-03-19
| | | | | | | | | | This ensures the hwaccel privdata does not leak when a frame buffer could not be allocated (and toggle the assert when the frame is re-used). Having no frame buffer available is quite common when using the DXVA2 hwaccel in situations where the DXVA2 renderer is being re-allocated, for example when moving between displays. Signed-off-by: Anton Khirnov <anton@khirnov.net>
* pthread: unref already decoded frames when flushing the decoderHendrik Leppkes2013-03-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* mpegvideo: fix allocation of the hwaccel_picture_private dataHendrik Leppkes2013-03-19
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* lavc: update the doxy for avcodec_decode_{video,audio} wtih refcounting.Anton Khirnov2013-03-19
|
* lavc, lavfi: fix counting number of planes in AVBufferRef wrappersAnton Khirnov2013-03-19
| | | | | | Number of planes is not always equal to the number of components even for formats marked with PIX_FMT_PLANAR -- e.g. NV12 has three components in two planes.
* mpeg12: do not fail on zero dimensions in the sequence header.Anton Khirnov2013-03-18
| | | | | | | | | | | | The total frame size is a combination of the 12 bits in the sequence header and 2 more bits in the the sequence extension. While the specification explicitly forbids the dimensions from the sequence header from being 0 (thus ruling out multiples of 4096), such videos apparrently exist in the wild so we should attempt to decode them. Based on a patch by Michael Niedermayer <michaelni@gmx.at> Fixes Bug 416.
* lavc,lavfi: fix calculating the plane size in the AVBufferRef wrappersAnton Khirnov2013-03-17
| | | | | It is supposed to be height * linesize, not width * linesize. Thanks to Hendrik Leppkes for pointing out the bug.
* atrac3: avoid oversized shifting in decode_bytes()Xi Wang2013-03-15
| | | | | | | | | | | | | | When `off' is 0, `0x537F6103 << 32' in the following expression invokes undefined behavior, the result of which is not necessarily 0. (0x537F6103 >> (off * 8)) | (0x537F6103 << (32 - (off * 8))) Avoid oversized shifting. CC: libav-stable@libav.org Signed-off-by: Xi Wang <xi.wang@gmail.com> Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* add support for Monkey's Audio versions from 3.93Kostya Shishkov2013-03-15
|
* ape: provide two additional bytes in buffer for old MAC versionsKostya Shishkov2013-03-15
| | | | Range coder in 3.90-3.95 overread two bytes in the final normalize.
* ape: make version-dependent decoding functions called via pointersKostya Shishkov2013-03-15
| | | | | | | This will help in supporting old versions, e.g. version 3.93 uses the same range coder but different predictor and version 3.82 uses different range coder and predictor. Also this should not make decoding newer versions slower by introducing additional checks on versions.
* vaapi: fix argument for ff_vaapi_common_end_frame callJanne Grunau2013-03-14
|
* avcodec: av_log_missing_feature(1) ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* avcodec: av_log_ask_for_sample() ---> avpriv_request_sample()Diego Biurrun2013-03-13
|
* av_log_missing_feature() ---> avpriv_report_missing_feature()Diego Biurrun2013-03-13
|
* Add av_log_{ask_for_sample|missing_feature} replacements to libavutilDiego Biurrun2013-03-13
| | | | | This allows reporting missing features and requesting samples from all libraries in a standard way; with a simplified API.
* avpacket: copy side data type and size in av_dup_packetJanne Grunau2013-03-13
|
* cabac: remove unused argument of ff_init_cabac_states()Michael Niedermayer2013-03-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* rawdec: fix a typo -- || instead of |Nicolas George2013-03-13
| | | | Signed-off-by: Anton Khirnov <anton@khirnov.net>
* dsputil: convert remaining functions to use ptrdiff_t stridesLuca Barbato2013-03-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* Add informative messages to av_log_ask_for_sample calls lacking themDiego Biurrun2013-03-12
|
* vda: remove async decoder leftoversLuca Barbato2013-03-12
| | | | Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
* avframe: call release_buffer only if it is setJanne Grunau2013-03-11
| | | | | | AVCodecContext release_buffer() shall be NULL for audio codecs using get_buffer. The backward compatibility code hence have to check before calling it.
* pthread: unref the decoded but not returned frames on close.Anton Khirnov2013-03-11
| | | | | Fixes memleaks when frame mt is used and the decoder is not flushed at the end.
* h264: check that DPB is allocated before accessing it in flush_dpb()Anton Khirnov2013-03-11
|
* h264_refs: cosmetics, reformatAnton Khirnov2013-03-11
|
* h264: remove a useless svq3 conditionAnton Khirnov2013-03-11
| | | | The svq3 decoder does not call ff_h264_frame_start() anymore.
* mpegvideo: remove FMT_H264Anton Khirnov2013-03-11
|
* mpegvideo: reindentAnton Khirnov2013-03-11
|
* mpegvideo: remove useless references to h264 and svq3Anton Khirnov2013-03-11
| | | | | The h264 decoder does not use mpegvideo anymore. The svq3 decoder only uses ff_draw_horiz_band().