[FFmpeg-soc] [soc]: r1870 - libavfilter/avfilter.c

vitor subversion at mplayerhq.hu
Sat Feb 9 17:56:56 CET 2008


Author: vitor
Date: Sat Feb  9 17:56:55 2008
New Revision: 1870

Log:
Move setting the pts of the copied frame to a more adequated place.
Suggested by Bobby Bingham.


Modified:
   libavfilter/avfilter.c

Modified: libavfilter/avfilter.c
==============================================================================
--- libavfilter/avfilter.c	(original)
+++ libavfilter/avfilter.c	Sat Feb  9 17:56:55 2008
@@ -222,6 +222,7 @@ void avfilter_start_frame(AVFilterLink *
 
         link->cur_pic = avfilter_default_get_video_buffer(link, link_dpad(link).min_perms);
         link->srcpic = picref;
+        link->cur_pic->pts = link->srcpic->pts;
     }
     else
         link->cur_pic = picref;
@@ -256,7 +257,6 @@ void avfilter_draw_slice(AVFilterLink *l
     if(link->srcpic) {
         avcodec_get_chroma_sub_sample(link->format, &hsub, &vsub);
 
-        link->cur_pic->pts = link->srcpic->pts;
         src[0] = link->srcpic-> data[0] + y * link->srcpic-> linesize[0];
         dst[0] = link->cur_pic->data[0] + y * link->cur_pic->linesize[0];
         for(i = 1; i < 4; i ++) {



More information about the FFmpeg-soc mailing list