mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-12 10:29:39 +00:00
lavfi/showwaves: simplify check in filter_samples()
Also fix Coverity issue CID 733743: Dereference after null check
This commit is contained in:
parent
e9b8523d52
commit
5f634480d1
@ -195,7 +195,7 @@ static int filter_samples(AVFilterLink *inlink, AVFilterBufferRef *insamples)
|
||||
|
||||
/* draw data in the buffer */
|
||||
for (i = 0; i < nb_samples; i++) {
|
||||
if (showwaves->buf_idx == 0 && showwaves->sample_count_mod == 0) {
|
||||
if (!outpicref) {
|
||||
showwaves->outpicref = outpicref =
|
||||
ff_get_video_buffer(outlink, AV_PERM_WRITE|AV_PERM_ALIGN,
|
||||
outlink->w, outlink->h);
|
||||
|
Loading…
Reference in New Issue
Block a user