[FFmpeg-cvslog] lavfi/video: set output frame w/h properties in default_start_frame()

Stefano Sabatini git at videolan.org
Sat Jun 16 00:35:40 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Thu Jun 14 13:12:18 2012 +0200| [635a25954e96bc7b765dc84e9118fca0a61dcaf9] | committer: Stefano Sabatini

lavfi/video: set output frame w/h properties in default_start_frame()

Use the same values of the video output link.

Avoid the need to override the default_start_frame() with an ad-hoc
start_frame() callback.

In particular, fix the super2xsai filter which was setting the
input w/h values in the output.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=635a25954e96bc7b765dc84e9118fca0a61dcaf9
---

 libavfilter/video.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavfilter/video.c b/libavfilter/video.c
index dfcfbb7..dce3478 100644
--- a/libavfilter/video.c
+++ b/libavfilter/video.c
@@ -164,6 +164,8 @@ static void default_start_frame(AVFilterLink *inlink, AVFilterBufferRef *picref)
     if (outlink) {
         outlink->out_buf = ff_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
         avfilter_copy_buffer_ref_props(outlink->out_buf, picref);
+        outlink->out_buf->video->w = outlink->w;
+        outlink->out_buf->video->h = outlink->h;
         ff_start_frame(outlink, avfilter_ref_buffer(outlink->out_buf, ~0));
     }
 }



More information about the ffmpeg-cvslog mailing list