| Commit message (Collapse) | Author | Age |
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
| |
Fixes fate errors in asv1, ffvhuff and huffyuv on x86_32.
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
| |
avcodec_encode_video function
Signed-off-by: Martin Storsjö <martin@martin.st>
|
| |
|
|
|
|
| |
free_tables() frees it already.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
This way it does not look like a constant.
|
|
|
|
| |
There is no point in keeping those separate.
|
|
|
|
| |
It is not called from outside h264.c
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
It is supposed to be height * linesize, not width * linesize.
Thanks to Hendrik Leppkes for pointing out the bug.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
| |
|
|
|
|
| |
Range coder in 3.90-3.95 overread two bytes in the final normalize.
|
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
This allows reporting missing features and requesting samples from
all libraries in a standard way; with a simplified API.
|
| |
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
| |
|
|
|
|
| |
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
|
|
| |
AVCodecContext release_buffer() shall be NULL for audio codecs using
get_buffer. The backward compatibility code hence have to check before
calling it.
|
|
|
|
|
| |
Fixes memleaks when frame mt is used and the decoder is not flushed at
the end.
|
| |
|
| |
|
|
|
|
| |
The svq3 decoder does not call ff_h264_frame_start() anymore.
|
| |
|
| |
|
|
|
|
|
| |
The h264 decoder does not use mpegvideo anymore. The svq3 decoder only
uses ff_draw_horiz_band().
|