You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avcodec/wavpack: check for allocation failure
This commit is contained in:
@@ -987,6 +987,9 @@ static int init_thread_copy(AVCodecContext *avctx)
|
|||||||
s->curr_frame.f = av_frame_alloc();
|
s->curr_frame.f = av_frame_alloc();
|
||||||
s->prev_frame.f = av_frame_alloc();
|
s->prev_frame.f = av_frame_alloc();
|
||||||
|
|
||||||
|
if (!s->curr_frame.f || !s->prev_frame.f)
|
||||||
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user