Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -313,7 +313,10 @@ static av_cold int movie_common_init(AVFilterContext *ctx) · 312 unmodified lines | ||
| 313 | 313 | return AVERROR(ENOMEM); |
| 314 | 314 | pad.config_props = movie_config_output_props; |
| 315 | 315 | pad.request_frame = movie_request_frame; |
| 316 | − ff_insert_outpad(ctx, i, &pad); | |
| 316 | + if ((ret = ff_insert_outpad(ctx, i, &pad)) < 0) { | |
| 317 | + av_freep(&pad.name); | |
| 318 | + return ret; | |
| 319 | + } | |
| 317 | 320 | if ( movie->st[i].st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO && |
| 318 | 321 | !movie->st[i].st->codecpar->channel_layout) { |
| 319 | 322 | ret = guess_channel_layout(&movie->st[i], i, ctx); |