History

avfilter/af_aecho: free input frame after it is being used

Paul B Mahol committed 13 years ago

Commit d9d752c1 parent 95212361 file · +2 −1Browse files

Unified · Split

libavfilter/af_aecho.c+2−1
@@ -285,10 +285,11 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *frame) · 284 unmodified lines
285 s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data,285 s->echo_samples(s, s->delayptrs, frame->extended_data, out_frame->extended_data,
286 frame->nb_samples, inlink->channels);286 frame->nb_samples, inlink->channels);
287 287
288 s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base);
289
288 if (frame != out_frame)290 if (frame != out_frame)
289 av_frame_free(&frame);291 av_frame_free(&frame);
290 292
291 s->next_pts = frame->pts + av_rescale_q(frame->nb_samples, (AVRational){1, inlink->sample_rate}, inlink->time_base);
292 return ff_filter_frame(ctx->outputs[0], out_frame);293 return ff_filter_frame(ctx->outputs[0], out_frame);
293}294}
294 295

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t