Commit 801ac715 authored by Luca Barbato's avatar Luca Barbato

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

parent 30015305
...@@ -305,7 +305,7 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q, ...@@ -305,7 +305,7 @@ static int qsv_decode(AVCodecContext *avctx, QSVContext *q,
/* make sure we do not enter an infinite loop if the SDK /* make sure we do not enter an infinite loop if the SDK
* did not consume any data and did not return anything */ * did not consume any data and did not return anything */
if (!*sync && !bs.DataOffset) { 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; bs.DataOffset = avpkt->size;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment