| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
Having it there forces decoding of a frame in order to get frame_size, but it
is not really needed for proper demuxing or decoding.
|
|
|
|
| |
It takes a codec parameter, thus enabling codec-specific defaults.
|
|
|
|
| |
It's too unreliable to be useful. avio_size() should be called instead.
|
|
|
|
| |
This will prevent seeking by bytes for formats that cannot handle this.
|
|
|
|
|
| |
This prevents flushing the packet buffer when the input format does not
support seeking.
|
|
|
|
|
|
|
|
|
|
| |
On the first iteration through this code, last_dts is always
INT64_MIN (AV_NOPTS_VALUE) and the subtraction overflows in
an invalid manner. Although the result is only used if the
input values are valid, performing the subtraction is still
not allowed in a strict environment.
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
|
|
|
|
|
| |
On OS X, av_malloc(0) returns pointers that cause crashes when
freed.
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
|
|
|
| |
This patch also introduces CODEC_ID_CELT.
Signed-off-by: Nicolas George <nicolas.george@normalesup.org>
Signed-off-by: Diego Biurrun <diego@biurrun.de>
|
|
|
|
|
|
|
|
|
|
|
|
| |
If the demuxer did not set a codec_tag, there is none and
inventing one makes no sense. This change stops the rawvideo
"decoder" over-writing user-supplied pixfmt with one derived
from the codec_tag. The pixfmt-codec_tag-pixfmt round-trip
is lossy since several pixfmts map to the same codec_tag.
This fixes fate-lavf-pixfmt with avfilter disabled.
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
| |
|
|
|
|
|
| |
Signed-off-by: David Goldwich <david.goldwich@gmail.com>
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
| |
|
| |
|
|
|
|
| |
It allows to check if a given codec can be written into a container.
|
|
|
|
|
| |
Signed-off-by: Zohar Kelrich <lumimies@gmail.com>
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
|
|
|
| |
A loop control variable was shadowed inside the loop and never updated.
|
|
|
|
|
|
|
| |
Rename it to "avctx", the old name was confusing as the function is
used also with decoder contexts.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
|
|
|
|
| |
libavformat/utils.c:599: warning: missing braces around initializer
libavformat/utils.c:599: warning: (near initialization for ‘ap.time_base’)
|
| |
|
|
|
|
| |
ic is NULL in case of error.
|
|
|
|
| |
This fixes AAC playback in ffplay.
|
|
|
|
| |
It's an XSI extension, not available on some supported systems.
|
| |
|
|
|
|
| |
Deprecate avcodec_alloc_context/2.
|
|
|
|
| |
It supports passing options to codecs.
|
| |
|
|
|
|
| |
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
|
|
|
|
|
|
|
|
|
| |
av_open_input_stream used to allow this, even though it makes no sense.
Make it just print a warning instead of failing, thus restoring
compatibility.
Note that avformat_open_input() will still reject this combination.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
|
|
|
|
| |
Needed for proper behaviour in our old API compatibility code.
|
| |
|
|
|
|
| |
It supports more convenient setting of AVOptions.
|
|
|
|
| |
Deprecate the last remaining member of AVFormatParameters.
|
|
|
|
| |
Add support for demuxer private options.
|
| |
|
|
|
|
|
|
| |
Fixes issue2437.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
| |
This might happen if there was an error before priv_data was allocated
and result in segfault.
|
| |
|
|
|
|
|
|
| |
It's simpler and less error-prone.
Fixes some memleaks along the way.
|
|
|
|
|
|
|
| |
Most of these variables are only used in av_dlog statements, some
are required but not used by other macros.
Signed-off-by: Mans Rullgard <mans@mansr.com>
|
| |
|
| |
|
|
|
|
|
|
| |
Parenthesis are misplaced in calculation of max_time.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
|
|
|
|
| |
asf_read_seek() inside the asf demuxer already does the
right thing, it tries the index and if that fails it uses
binary search. If binary search is called from outside of asfdec.c
it will fail because the asf code cannot clean up after itself.
Therefore introduce AVFMT_NOBINSEARCH that prevents the seek
code to fallback to binary search and AVFMT_NOGENSEARCH that
prevents the seek code to fallback to generic search.
|