Merge commit '17c45d4d05'
* commit '17c45d4d05':
libtheora: Check frame allocation
Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a91c175db2
1 changed files with 2 additions and 0 deletions
|
|
@ -267,6 +267,8 @@ static av_cold int encode_init(AVCodecContext* avc_context)
|
|||
|
||||
/* Set up the output AVFrame */
|
||||
avc_context->coded_frame = av_frame_alloc();
|
||||
if (!avc_context->coded_frame)
|
||||
return AVERROR(ENOMEM);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue