Commit 42874666 authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/snowdec: check av_frame_ref() return value

Fixes CID1135742
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 11679e1b
......@@ -562,9 +562,12 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
ff_snow_release_buffer(avctx);
if(!(s->avctx->debug&2048))
av_frame_ref(picture, s->current_picture);
res = av_frame_ref(picture, s->current_picture);
else
av_frame_ref(picture, s->mconly_picture);
res = av_frame_ref(picture, s->mconly_picture);
if (res < 0)
return res;
*got_frame = 1;
......
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