Unified · Split
| @@ -471,11 +471,10 @@ static int request_frame(AVFilterLink *link) · 470 unmodified lines | |||
| 471 | 471 | ||
| 472 | switch (link->type) { | 472 | switch (link->type) { |
| 473 | case AVMEDIA_TYPE_VIDEO: | 473 | case AVMEDIA_TYPE_VIDEO: |
| 474 | /* TODO reindent */ | 474 | avfilter_start_frame(link, avfilter_ref_buffer(buf, ~0)); |
| 475 | avfilter_start_frame(link, avfilter_ref_buffer(buf, ~0)); | 475 | avfilter_draw_slice(link, 0, link->h, 1); |
| 476 | avfilter_draw_slice(link, 0, link->h, 1); | 476 | avfilter_end_frame(link); |
| 477 | avfilter_end_frame(link); | 477 | avfilter_unref_buffer(buf); |
| 478 | avfilter_unref_buffer(buf); | ||
| 479 | break; | 478 | break; |
| 480 | case AVMEDIA_TYPE_AUDIO: | 479 | case AVMEDIA_TYPE_AUDIO: |
| 481 | avfilter_filter_samples(link, avfilter_ref_buffer(buf, ~0)); | 480 | avfilter_filter_samples(link, avfilter_ref_buffer(buf, ~0)); |