qsv: Be informative when reporting that no data has been consumed

This commit is contained in:
Luca Barbato 2016-10-29 17:00:20 +02:00
parent 30015305f3
commit 801ac7156d
1 changed files with 1 additions and 1 deletions

View File

@ -305,7 +305,7 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q,
/* make sure we do not enter an infinite loop if the SDK
* did not consume any data and did not return anything */
if (!*sync && !bs.DataOffset) {
av_log(avctx, AV_LOG_WARNING, "A decode call did not consume any data\n");
ff_qsv_print_warning(avctx, ret, "A decode call did not consume any data");
bs.DataOffset = avpkt->size;
}