The type of qsv decoders is FF_CODEC_CB_TYPE_DECODE which must not return AVERROR(EAGAIN). commit 42b20c9 added an assertion to check the returned value.
Unified · Split
| @@ -1076,6 +1076,9 @@ static int qsv_decode_frame(AVCodecContext *avctx, AVFrame *frame, · 1075 unmodified lines | ||
| 1076 | 1076 | |
| 1077 | 1077 | ret = qsv_process_data(avctx, &s->qsv, frame, got_frame, &s->buffer_pkt); |
| 1078 | 1078 | if (ret < 0){ |
| 1079 | + if (ret == AVERROR(EAGAIN)) | |
| 1080 | + ret = 0; | |
| 1081 | + | |
| 1079 | 1082 | /* Drop buffer_pkt when failed to decode the packet. Otherwise, |
| 1080 | 1083 | the decoder will keep decoding the failure packet. */ |
| 1081 | 1084 | av_packet_unref(&s->buffer_pkt); |