[FFmpeg-cvslog] dxa: only fail with an error about reference frames if the reference frame would be used

Michael Niedermayer git at videolan.org
Sat Aug 17 11:51:09 CEST 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Aug 17 11:11:45 2013 +0200| [186e47ef6d7d90bfd8b16e77cfa5e7aeb2a497c0] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=186e47ef6d7d90bfd8b16e77cfa5e7aeb2a497c0
---

 libavcodec/dxa.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/dxa.c b/libavcodec/dxa.c
index 5991c91..0ef208b 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;
         }



More information about the ffmpeg-cvslog mailing list