When all cached frames are drained, the output mfxSyncPoint pointer is NULL and MFX_ERR_MORE_DATA is returned, hence needn't print warning for this expected behavior, otherwise the user might think the output from qsv decoders are wrong.
Unified · Split
| @@ -762,7 +762,9 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q, · 761 unmodified lines | |||
| 762 | if (!*sync && !bs.DataOffset) { | 762 | if (!*sync && !bs.DataOffset) { |
| 763 | bs.DataOffset = avpkt->size; | 763 | bs.DataOffset = avpkt->size; |
| 764 | ++q->zero_consume_run; | 764 | ++q->zero_consume_run; |
| 765 | if (q->zero_consume_run > 1) | 765 | if (q->zero_consume_run > 1 && |
| 766 | (avpkt->size || | ||
| 767 | ret != MFX_ERR_MORE_DATA)) | ||
| 766 | ff_qsv_print_warning(avctx, ret, "A decode call did not consume any data"); | 768 | ff_qsv_print_warning(avctx, ret, "A decode call did not consume any data"); |
| 767 | } else { | 769 | } else { |
| 768 | q->zero_consume_run = 0; | 770 | q->zero_consume_run = 0; |