Unified · Split
| @@ -686,10 +686,14 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *in) · 685 unmodified lines | ||
| 686 | 686 | ret = ff_filter_frame(outlink, out); |
| 687 | 687 | } |
| 688 | 688 | |
| 689 | − av_frame_make_writable(in); | |
| 690 | − cqueue_enqueue(s->is_enabled, !ctx->is_disabled); | |
| 691 | − analyze_frame(s, in); | |
| 692 | − ff_bufqueue_add(ctx, &s->queue, in); | |
| 689 | + if (!s->eof) { | |
| 690 | + av_frame_make_writable(in); | |
| 691 | + cqueue_enqueue(s->is_enabled, !ctx->is_disabled); | |
| 692 | + analyze_frame(s, in); | |
| 693 | + ff_bufqueue_add(ctx, &s->queue, in); | |
| 694 | + } else { | |
| 695 | + av_frame_free(&in); | |
| 696 | + } | |
| 693 | 697 | |
| 694 | 698 | return ret; |
| 695 | 699 | } |