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