mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
lavc/libschroedinger: add missing failure checks in ff_create_schro_frame()
This commit is contained in:
parent
97726e86be
commit
5793a6d9f9
@ -189,7 +189,10 @@ SchroFrame *ff_create_schro_frame(AVCodecContext *avccontext,
|
||||
uv_height = y_height >> (SCHRO_FRAME_FORMAT_V_SHIFT(schro_frame_fmt));
|
||||
|
||||
p_pic = av_mallocz(sizeof(AVPicture));
|
||||
avpicture_alloc(p_pic, avccontext->pix_fmt, y_width, y_height);
|
||||
if (!p_pic || avpicture_alloc(p_pic, avccontext->pix_fmt, y_width, y_height) < 0) {
|
||||
av_free(p_pic);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
p_frame = schro_frame_new();
|
||||
p_frame->format = schro_frame_fmt;
|
||||
|
Loading…
Reference in New Issue
Block a user