mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
lavfi/showwaves: return error in case of allocation failure in filter_samples()
This commit is contained in:
parent
5f634480d1
commit
b5436f4b5d
@ -199,6 +199,8 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
|
||||
showwaves->outpicref = outpicref =
|
||||
ff_get_video_buffer(outlink, AV_PERM_WRITE|AV_PERM_ALIGN,
|
||||
outlink->w, outlink->h);
|
||||
if (!outpicref)
|
||||
return AVERROR(ENOMEM);
|
||||
outpicref->video->w = outlink->w;
|
||||
outpicref->video->h = outlink->h;
|
||||
outpicref->pts = insamples->pts +
|
||||
|
Loading…
Reference in New Issue
Block a user