[FFmpeg-cvslog] cinepack: print an error if cinepak_decode() failed

Michael Niedermayer git at videolan.org
Sat Feb 16 14:11:13 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Feb 16 13:49:04 2013 +0100| [0a707da37b4101730debda1a5600022bbb0b736e] | committer: Michael Niedermayer

cinepack: print an error if cinepak_decode() failed

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

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

 libavcodec/cinepak.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c
index b323da4..54ad51c 100644
--- a/libavcodec/cinepak.c
+++ b/libavcodec/cinepak.c
@@ -451,7 +451,9 @@ static int cinepak_decode_frame(AVCodecContext *avctx,
         }
     }
 
-    cinepak_decode(s);
+    if ((ret = cinepak_decode(s)) < 0) {
+        av_log(avctx, AV_LOG_ERROR, "cinepak_decode failed\n");
+    }
 
     if (s->palette_video)
         memcpy (s->frame.data[1], s->pal, AVPALETTE_SIZE);



More information about the ffmpeg-cvslog mailing list