History

avcodec/decode: EAGAIN is not fully supported in decode_simple_internal()

Michael Niedermayer committed 3 years ago

Commit 42b20c91 parent 63eb6301 file · +3 −0Browse files

Unified · Split

libavcodec/decode.c+3−0
@@ -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)

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