mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avcodec/snowdec: check av_frame_ref() return value
Fixes CID1135742 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
11679e1b90
commit
42874666a6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user