summaryrefslogtreecommitdiff
path: root/libavcodec/dxa.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-17 11:11:45 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-08-17 11:19:20 +0200
commit186e47ef6d7d90bfd8b16e77cfa5e7aeb2a497c0 (patch)
treec31fc37a55718ce3c44687f1c12b5c029fc3a749 /libavcodec/dxa.c
parent7a342f97c48f529d93aa46e572944d279c1dd697 (diff)
downloadffmpeg-186e47ef6d7d90bfd8b16e77cfa5e7aeb2a497c0.tar.gz
dxa: only fail with an error about reference frames if the reference frame would be used
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/dxa.c')
-rw-r--r--libavcodec/dxa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index 5991c91d0e..0ef208b3ec 100644
--- a/libavcodec/dxa.c
+++ b/libavcodec/dxa.c
@@ -262,7 +262,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame, AVPac
case 3:
case 4:
case 5:
- if (!tmpptr) {
+ if (!tmpptr && (compr & 1)) {
av_log(avctx, AV_LOG_ERROR, "Missing reference frame.\n");
return AVERROR_INVALIDDATA;
}