mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Remove useless free, fix warning:
libavfilter/defaults.c: In function 'avfilter_default_get_audio_buffer': libavfilter/defaults.c:129: warning: 'buf' is used uninitialized in this function Originally committed as revision 26382 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1b3e43e4fd
commit
ecea47a6ed
@ -126,7 +126,6 @@ AVFilterBufferRef *avfilter_default_get_audio_buffer(AVFilterLink *link, int per
|
|||||||
return ref;
|
return ref;
|
||||||
|
|
||||||
fail:
|
fail:
|
||||||
av_free(buf);
|
|
||||||
if (ref && ref->audio)
|
if (ref && ref->audio)
|
||||||
av_free(ref->audio);
|
av_free(ref->audio);
|
||||||
av_free(ref);
|
av_free(ref);
|
||||||
@ -210,6 +209,7 @@ int avfilter_default_config_output_link(AVFilterLink *link)
|
|||||||
if (link->type == AVMEDIA_TYPE_VIDEO) {
|
if (link->type == AVMEDIA_TYPE_VIDEO) {
|
||||||
link->w = link->src->inputs[0]->w;
|
link->w = link->src->inputs[0]->w;
|
||||||
link->h = link->src->inputs[0]->h;
|
link->h = link->src->inputs[0]->h;
|
||||||
|
link->sample_aspect_ratio = link->src->inputs[0]->sample_aspect_ratio;
|
||||||
link->time_base = link->src->inputs[0]->time_base;
|
link->time_base = link->src->inputs[0]->time_base;
|
||||||
} else if (link->type == AVMEDIA_TYPE_AUDIO) {
|
} else if (link->type == AVMEDIA_TYPE_AUDIO) {
|
||||||
link->channel_layout = link->src->inputs[0]->channel_layout;
|
link->channel_layout = link->src->inputs[0]->channel_layout;
|
||||||
|
Loading…
Reference in New Issue
Block a user