History

lavc/qsvdec: Do not print warning when draining cached frames

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.

Haihao Xiang committed 2 years ago

Commit 697251b1 parent 6e632951 file · +3 −1Browse files

Unified · Split

libavcodec/qsvdec.c+3−1
@@ -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;

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