Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -457,6 +457,9 @@ FF_ENABLE_DEPRECATION_WARNINGS · 456 unmodified lines | |||
| 457 | if (ret == AVERROR(EAGAIN)) | 457 | if (ret == AVERROR(EAGAIN)) |
| 458 | av_frame_unref(frame); | 458 | av_frame_unref(frame); |
| 459 | 459 | ||
| 460 | // FF_CODEC_CB_TYPE_DECODE decoders must not return AVERROR EAGAIN | ||
| 461 | // code later will add AVERROR(EAGAIN) to a pointer | ||
| 462 | av_assert0(consumed != AVERROR(EAGAIN)); | ||
| 460 | if (consumed < 0) | 463 | if (consumed < 0) |
| 461 | ret = consumed; | 464 | ret = consumed; |
| 462 | if (consumed >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO) | 465 | if (consumed >= 0 && avctx->codec->type == AVMEDIA_TYPE_VIDEO) |