Browse Source

yop: check return value of av_frame_alloc()

Signed-off-by: Paul B Mahol <onemda@gmail.com>
tags/n2.1
Paul B Mahol 12 years ago
parent
commit
3838637bbb
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/yop.c

+ 2
- 0
libavcodec/yop.c View File

@@ -118,6 +118,8 @@ static av_cold int yop_decode_init(AVCodecContext *avctx)
}

s->frame = av_frame_alloc();
if (!s->frame)
return AVERROR(ENOMEM);

return 0;
}


Loading…
Cancel
Save