[FFmpeg-devel] [PATCH 2/2] lavfi/mp: switch to ff_filter_frame.
Clément Bœsch
ubitux at gmail.com
Sun Dec 2 21:33:59 CET 2012
---
libavfilter/vf_mp.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/libavfilter/vf_mp.c b/libavfilter/vf_mp.c
index c70ab28..057b1e9 100644
--- a/libavfilter/vf_mp.c
+++ b/libavfilter/vf_mp.c
@@ -608,10 +608,7 @@ int vf_next_put_image(struct vf_instance *vf,mp_image_t *mpi, double pts){
if(pts != MP_NOPTS_VALUE)
picref->pts= pts * av_q2d(outlink->time_base);
- ff_start_frame(outlink, avfilter_ref_buffer(picref, ~0));
- ff_draw_slice(outlink, 0, picref->video->h, 1);
- ff_end_frame(outlink);
- avfilter_unref_buffer(picref);
+ ff_filter_frame(outlink, picref);
m->frame_returned++;
return 1;
--
1.8.0.1
More information about the ffmpeg-devel
mailing list