Remove forgotten if (p) av_free(p) forms
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 290849e2a4
)
This commit is contained in:

committed by
Michael Niedermayer

parent
b9004bd50c
commit
bffad70c66
@@ -126,7 +126,7 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per
|
|||||||
return ref;
|
return ref;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
if (ref && ref->audio)
|
if (ref)
|
||||||
av_free(ref->audio);
|
av_free(ref->audio);
|
||||||
av_free(ref);
|
av_free(ref);
|
||||||
av_free(samples);
|
av_free(samples);
|
||||||
|
@@ -1354,7 +1354,6 @@ static int avi_read_close(AVFormatContext *s)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (avi->dv_demux)
|
|
||||||
av_free(avi->dv_demux);
|
av_free(avi->dv_demux);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user