diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-02-16 13:49:04 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-02-16 13:49:04 +0100 |
commit | 0a707da37b4101730debda1a5600022bbb0b736e (patch) | |
tree | ddefa581cd2a4c5383f73eb763cc80f94dacc3c4 /libavcodec/cinepak.c | |
parent | b4bb996d6f41812144cf97947c3e88a9a1659c4f (diff) | |
download | ffmpeg-0a707da37b4101730debda1a5600022bbb0b736e.tar.gz |
cinepack: print an error if cinepak_decode() failed
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/cinepak.c')
-rw-r--r-- | libavcodec/cinepak.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/cinepak.c b/libavcodec/cinepak.c index b323da4741..54ad51c9e2 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); |