Make the scale filter pass the pkt.pos information to the output
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 13 Mar 2010 12:33:44 +0000 (12:33 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Sat, 13 Mar 2010 12:33:44 +0000 (12:33 +0000)
picref.

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

libavfilter/vf_scale.c

index 4d109ad..8b70d03 100644 (file)
@@ -145,6 +145,7 @@ static void start_frame(AVFilterLink *link, AVFilterPicRef *picref)
 
     outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
     outpicref->pts = picref->pts;
 
     outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
     outpicref->pts = picref->pts;
+    outpicref->pos = picref->pos;
     outlink->outpic = outpicref;
 
     av_reduce(&outpicref->pixel_aspect.num, &outpicref->pixel_aspect.den,
     outlink->outpic = outpicref;
 
     av_reduce(&outpicref->pixel_aspect.num, &outpicref->pixel_aspect.den,