| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Deprecated in 10/2014 and 07/2015.
|
|
|
|
|
| |
Currently it's memset to 0, which is YUV420P. It should be initialized
to none.
|
|
|
|
|
|
|
| |
avcodec_copy_context() didn't handle hw_frames_ctx references correctly
which could cause crashes.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
|
|
|
|
|
|
|
|
| |
This function is supposed to "reset" a codec context to a clean state so
that it can be opened again. The only reason it exists is to allow using
AVStream.codec as a decoding context (after it was already
opened/used/closed by avformat_find_stream_info()). Since that behaviour
is now deprecated, there is no reason for this function to exist
anymore.
|
|
|
|
|
|
|
|
|
| |
Since AVCodecContext contains a lot of complex state, copying a codec
context is not a well-defined operation. The purpose for which it is
typically used (which is well-defined) is copying the stream parameters
from one codec context to another. That is now possible with through the
AVCodecParameters API. Therefore, there is no reason for
avcodec_copy_context() to exist.
|
|
|
|
| |
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
|
|
|
|
|
|
| |
Unbreak build from 7a5902c556d84a367dd64a003a4e7244fc3a73d1.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
When decoding, this field holds the inverse of the framerate that can be
written in the headers for some codecs. Using a field called 'time_base'
for this is very misleading, as there are no timestamps associated with
it. Furthermore, this field is used for a very different purpose during
encoding.
Add a new field, called 'framerate', to replace the use of time_base for
decoding.
|
|
|
|
| |
Signed-off-by: Diego Biurrun <diego@biurrun.de>
|
|
|
|
|
|
|
|
|
|
|
| |
Right now, the caller has to manually manage some allocated
AVCodecContext fields, like extradata or subtitle_header. This is
fragile and prone to leaks, especially if we want to add more such
fields in the future.
The only reason for this behaviour is so that the AVStream codec context
can be reused for decoding. Such reuse is discouraged anyway, so this
commit is the first step to deprecating it.
|
| |
|
|
|
|
|
| |
If a non-NULL codec was passed to avcodec_alloc_context3(), private data
will be already allocated in dest.
|
|
|
|
|
|
| |
It's a private field, it should not be visible to callers.
Deprecate AVCodecContext.thread_opaque
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Signed-off-by: Martin Storsjö <martin@martin.st>
|
|
|
|
| |
This will allow us to automatically generate manpages for them.
|
|
|
|
|
|
|
| |
In most places where it's used, it's as a pointless write-only field.
Only rv10 decoder actually reads from it, but it stores some internal
version info in it. There is no reason for it to be in a public field.
|
|
|
|
|
|
| |
- enable the options for audio encoding
- properly check for user-set maxrate
- use correct calling order in vorbis_encode_setup_managed()
|
|
|
|
| |
Deprecate corresponding AVCodecContext field.
|
|
|
|
| |
It's unused.
|
|
|
|
|
| |
It's currently only used as temporary storage by the mov demuxer. Make
it use a local variable instead.
|
|
|
|
| |
Deprecate corresponding AVCodecContext fields.
|
|
|
|
| |
Deprecate CODEC_FLAG_CBP_RD.
|
|
|
|
| |
Deprecate CODEC_FLAG_QP_RD.
|
|
|
|
| |
Deprecate CODEC_FLAG2_STRICT_GOP.
|
|
|
|
|
| |
Deprecate CODEC_FLAG2_SKIP_RD in favor of the corresponding mpv_flags
flag.
|
|
|
|
|
| |
Also give a more suitable name to the MMI-optimized IDCT;
it is not PS2-specific, as the name currently suggests.
|
|
|
|
|
| |
It is obscure, most likely unused and not bit-exact compared to
libavcodec due to a different IDCT transform algorithm.
|
|
|
|
|
|
|
|
|
| |
This way, if the AVCodecContext is allocated for a specific codec, the
caller doesn't need to store this codec separately and then pass it
again to avcodec_open2().
It also allows to set codec private options using av_opt_set_* before
opening the codec.
|
|
|
|
|
|
|
| |
It allows to check whether an AVCodecContext is open in a documented
way. Right now the undocumented way this check is done in lavf/lavc is
by checking whether AVCodecContext.codec is NULL. However it's desirable
to be able to set AVCodecContext.codec before avcodec_open2().
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Using threaded decoding by default breaks backward compatibility if
AVHWAccel is used or if an appliction sets threadunsafe callbacks.
Avconv and avplay still use -threads auto if not specified.
|
|
|
|
| |
Signed-off-by: Anton Khirnov <anton@khirnov.net>
|
| |
|
|
|
|
|
|
| |
Adds a new member to MpegEncContext to hold the number of used slice
contexts. Fixes segfaults with '-threads 17 -thread_type slice' and
fate-vsynth{1,2}-mpeg{2,4}thread{,_ilace} with --disable-pthreads.
|
| |
|