Commit 0a707da3 authored by Michael Niedermayer's avatar Michael Niedermayer

cinepack: print an error if cinepak_decode() failed

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent b4bb996d
......@@ -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);
......
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