Make avfilter_default_start_frame() correctly pass the aspect ratio
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 7 Mar 2010 23:53:47 +0000 (23:53 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sun, 7 Mar 2010 23:53:47 +0000 (23:53 +0000)
information to the next filter.

Originally committed as revision 22300 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavfilter/defaults.c

index 7e02ea849db57ea513b3db78bf140b03b3ca11a0..3484e0e6d5d4285d1ba1e2160e1463759779af2c 100644 (file)
@@ -74,6 +74,7 @@ void avfilter_default_start_frame(AVFilterLink *link, AVFilterPicRef *picref)
     if(out) {
         out->outpic      = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h);
         out->outpic->pts = picref->pts;
+        out->outpic->pixel_aspect = picref->pixel_aspect;
         avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0));
     }
 }