Showing the changes to libavcodec/avcodec.h (1 of 1 file). Show all
Unified · Split
| @@ -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 can | 2738 | * AVERROR_EOF: the encoder has been flushed, and no new frames can |
| 2739 | * be sent to it | 2739 | * be sent to it |
| 2740 | * AVERROR(EINVAL): codec not opened, refcounted_frames not set, it is a | 2740 | * 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 similar | 2741 | * AVERROR(ENOMEM): failed to add packet to internal queue, or similar |
| 2743 | * other errors: legitimate encoding errors | 2742 | * 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 called | 3229 | * 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 used | 3232 | * @note for decoders, this function just releases any references the decoder |
| 3234 | * (i.e. avctx->refcounted_frames is 0), this invalidates the frames previously | 3233 | * 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 encoder | 3235 | * @note for encoders, this function will only do something if the encoder |
| 3240 | * declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder | 3236 | * declares support for AV_CODEC_CAP_ENCODER_FLUSH. When called, the encoder |