1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

libtheora: Check frame allocation

This commit is contained in:
Vittorio Giovara 2015-03-12 12:34:52 +00:00
parent a72d93daa0
commit 17c45d4d05

View File

@ -260,6 +260,8 @@ static av_cold int encode_init(AVCodecContext* avc_context)
/* Set up the output AVFrame */ /* Set up the output AVFrame */
avc_context->coded_frame = av_frame_alloc(); avc_context->coded_frame = av_frame_alloc();
if (!avc_context->coded_frame)
return AVERROR(ENOMEM);
return 0; return 0;
} }