Commit 186e47ef authored by Michael Niedermayer's avatar Michael Niedermayer

dxa: only fail with an error about reference frames if the reference frame would be used

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 7a342f97
...@@ -262,7 +262,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac ...@@ -262,7 +262,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
case 3: case 3:
case 4: case 4:
case 5: case 5:
if (!tmpptr) { if (!tmpptr && (compr & 1)) {
av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n"); av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
return AVERROR_INVALIDDATA; return AVERROR_INVALIDDATA;
} }
......
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