mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-27 17:21:05 +00:00
avfilter/src_movie: Free outpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0ce19ecd28
commit
41c98bfe0a
@ -306,10 +306,8 @@ static av_cold int movie_common_init(AVFilterContext *ctx)
|
|||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
pad.config_props = movie_config_output_props;
|
pad.config_props = movie_config_output_props;
|
||||||
pad.request_frame = movie_request_frame;
|
pad.request_frame = movie_request_frame;
|
||||||
if ((ret = ff_append_outpad(ctx, &pad)) < 0) {
|
if ((ret = ff_append_outpad_free_name(ctx, &pad)) < 0)
|
||||||
av_freep(&pad.name);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
if ( movie->st[i].st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
|
if ( movie->st[i].st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO &&
|
||||||
!movie->st[i].st->codecpar->channel_layout) {
|
!movie->st[i].st->codecpar->channel_layout) {
|
||||||
ret = guess_channel_layout(&movie->st[i], i, ctx);
|
ret = guess_channel_layout(&movie->st[i], i, ctx);
|
||||||
@ -334,7 +332,6 @@ static av_cold void movie_uninit(AVFilterContext *ctx)
|
|||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ctx->nb_outputs; i++) {
|
for (i = 0; i < ctx->nb_outputs; i++) {
|
||||||
av_freep(&ctx->output_pads[i].name);
|
|
||||||
if (movie->st[i].st)
|
if (movie->st[i].st)
|
||||||
avcodec_free_context(&movie->st[i].codec_ctx);
|
avcodec_free_context(&movie->st[i].codec_ctx);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user