[FFmpeg-soc] [soc]: r416 - libavfilter/vsrc_ppm.c

koorogi subversion at mplayerhq.hu
Sat Jul 14 19:41:22 CEST 2007


Author: koorogi
Date: Sat Jul 14 19:41:22 2007
New Revision: 416

Log:
Use the existincg picture reference for updating the pts.
Uses one less variable.


Modified:
   libavfilter/vsrc_ppm.c

Modified: libavfilter/vsrc_ppm.c
==============================================================================
--- libavfilter/vsrc_ppm.c	(original)
+++ libavfilter/vsrc_ppm.c	Sat Jul 14 19:41:22 2007
@@ -24,7 +24,6 @@
 #include "avfilter.h"
 
 typedef struct {
-    int64_t pts;
     int w, h;
     FILE *in;
     AVFilterPicRef *pic;
@@ -87,11 +86,9 @@ static void request_frame(AVFilterLink *
 
         fclose(ppm->in);
         ppm->in = NULL;
-    }
+    } else ppm->pic->pts += 30;
 
     out = avfilter_ref_pic(ppm->pic, ~AV_PERM_WRITE);
-    out->pts  =
-    ppm->pts += 30;
     avfilter_start_frame(link, out);
     avfilter_draw_slice(link, out->data, 0, out->h);
     avfilter_end_frame(link);



More information about the FFmpeg-soc mailing list