mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-09 14:08:07 +00:00
avcodec: remove leftover references to AVCodecContext.refcounted_frames
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
5a413b392e
commit
f44d4f511d
@ -2737,8 +2737,7 @@ int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame);
|
|||||||
* the call will not fail with EAGAIN).
|
* the call will not fail with EAGAIN).
|
||||||
* AVERROR_EOF: the encoder has been flushed, and no new frames can
|
* AVERROR_EOF: the encoder has been flushed, and no new frames can
|
||||||
* be sent to it
|
* be sent to it
|
||||||
* AVERROR(EINVAL): codec not opened, refcounted_frames not set, it is a
|
* AVERROR(EINVAL): codec not opened, it is a decoder, or requires flush
|
||||||
* decoder, or requires flush
|
|
||||||
* AVERROR(ENOMEM): failed to add packet to internal queue, or similar
|
* AVERROR(ENOMEM): failed to add packet to internal queue, or similar
|
||||||
* other errors: legitimate encoding errors
|
* other errors: legitimate encoding errors
|
||||||
*/
|
*/
|
||||||
@ -3230,11 +3229,8 @@ int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels,
|
|||||||
* Reset the internal codec state / flush internal buffers. Should be called
|
* Reset the internal codec state / flush internal buffers. Should be called
|
||||||
* e.g. when seeking or when switching to a different stream.
|
* e.g. when seeking or when switching to a different stream.
|
||||||
*
|
*
|
||||||
* @note for decoders, when refcounted frames are not used
|
* @note for decoders, this function just releases any references the decoder
|
||||||
* (i.e. avctx->refcounted_frames is 0), this invalidates the frames previously
|
* might keep internally, but the caller's references remain valid.
|
||||||
* returned from the decoder. When refcounted frames are used, the decoder just
|
|
||||||
* releases any references it might keep internally, but the caller's reference
|
|
||||||
* remains valid.
|
|
||||||
*
|
*
|
||||||
* @note for encoders, this function will only do something if the encoder
|
* @note for encoders, this function will only do something if the encoder
|
||||||
* declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder
|
* declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder
|
||||||
|
Loading…
Reference in New Issue
Block a user