History

avcodec: remove leftover references to AVCodecContext.refcounted_frames

James Almer committed 5 years ago

Commit f44d4f51 parent 5a413b31 file · +3 −7Browse files

Unified · Split

libavcodec/avcodec.h+3−7
@@ -2737,8 +2737,7 @@ int avcodec_receive_frame(AVCodecContext *avctx, AVFrame *frame); · 2736 unmodified lines
2737 * the call will not fail with EAGAIN).2737 * the call will not fail with EAGAIN).
2738 * AVERROR_EOF: the encoder has been flushed, and no new frames can2738 * AVERROR_EOF: the encoder has been flushed, and no new frames can
2739 * be sent to it2739 * be sent to it
2740 * AVERROR(EINVAL): codec not opened, refcounted_frames not set, it is a2740 * AVERROR(EINVAL): codec not opened, it is a decoder, or requires flush
2741 * decoder, or requires flush
2742 * AVERROR(ENOMEM): failed to add packet to internal queue, or similar2741 * AVERROR(ENOMEM): failed to add packet to internal queue, or similar
2743 * other errors: legitimate encoding errors2742 * other errors: legitimate encoding errors
2744 */2743 */
@@ -3230,11 +3229,8 @@ int avcodec_fill_audio_frame(AVFrame *frame, int nb_channels, · 485 unmodified lines
3230 * Reset the internal codec state / flush internal buffers. Should be called3229 * Reset the internal codec state / flush internal buffers. Should be called
3231 * e.g. when seeking or when switching to a different stream.3230 * e.g. when seeking or when switching to a different stream.
3232 *3231 *
3233 * @note for decoders, when refcounted frames are not used3232 * @note for decoders, this function just releases any references the decoder
3234 * (i.e. avctx->refcounted_frames is 0), this invalidates the frames previously3233 * might keep internally, but the caller's references remain valid.
3235 * returned from the decoder. When refcounted frames are used, the decoder just
3236 * releases any references it might keep internally, but the caller's reference
3237 * remains valid.
3238 *3234 *
3239 * @note for encoders, this function will only do something if the encoder3235 * @note for encoders, this function will only do something if the encoder
3240 * declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder3236 * declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t