diff options
author | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-22 19:49:06 +0000 |
---|---|---|
committer | Vittorio Giovara <vittorio.giovara@gmail.com> | 2015-02-22 22:32:18 +0000 |
commit | e570f895cdccf2535a71fec1c607751ddb94fd5a (patch) | |
tree | 10a4afdb594f48323232eaba438da8aaba4ee3d6 /libavcodec/libschroedingerdec.c | |
parent | 521979e6b1e7a89751aebc285a40d6508f8af48f (diff) |
libschroedinger: Check memory allocations
Diffstat (limited to 'libavcodec/libschroedingerdec.c')
-rw-r--r-- | libavcodec/libschroedingerdec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/libschroedingerdec.c b/libavcodec/libschroedingerdec.c index 0c5a3fb851..c61aaefafe 100644 --- a/libavcodec/libschroedingerdec.c +++ b/libavcodec/libschroedingerdec.c @@ -271,6 +271,8 @@ static int libschroedinger_decode_frame(AVCodecContext *avctx, /* Decoder needs a frame - create one and push it in. */ frame = ff_create_schro_frame(avctx, p_schro_params->frame_format); + if (!frame) + return AVERROR(ENOMEM); schro_decoder_add_output_picture(decoder, frame); break; |