[FFmpeg-cvslog] r24196 - in trunk/libavfilter: avfilter.c defaults.c vf_scale.c

victor subversion
Sun Jul 11 16:44:43 CEST 2010


Author: victor
Date: Sun Jul 11 16:44:43 2010
New Revision: 24196

Log:
Use avfilter_copy_picref_props() along lavfi.

Modified:
   trunk/libavfilter/avfilter.c
   trunk/libavfilter/defaults.c
   trunk/libavfilter/vf_scale.c

Modified: trunk/libavfilter/avfilter.c
==============================================================================
--- trunk/libavfilter/avfilter.c	Sun Jul 11 16:13:23 2010	(r24195)
+++ trunk/libavfilter/avfilter.c	Sun Jul 11 16:44:43 2010	(r24196)
@@ -263,11 +263,7 @@ void avfilter_start_frame(AVFilterLink *
 
         link->cur_pic = avfilter_default_get_video_buffer(link, dst->min_perms, link->w, link->h);
         link->srcpic = picref;
-        link->cur_pic->pts = link->srcpic->pts;
-        link->cur_pic->pos = link->srcpic->pos;
-        link->cur_pic->pixel_aspect = link->srcpic->pixel_aspect;
-        link->cur_pic->interlaced      = link->srcpic->interlaced;
-        link->cur_pic->top_field_first = link->srcpic->top_field_first;
+        avfilter_copy_picref_props(link->cur_pic, link->srcpic);
     }
     else
         link->cur_pic = picref;

Modified: trunk/libavfilter/defaults.c
==============================================================================
--- trunk/libavfilter/defaults.c	Sun Jul 11 16:13:23 2010	(r24195)
+++ trunk/libavfilter/defaults.c	Sun Jul 11 16:44:43 2010	(r24196)
@@ -74,11 +74,7 @@ void avfilter_default_start_frame(AVFilt
 
     if(out) {
         out->outpic      = avfilter_get_video_buffer(out, AV_PERM_WRITE, out->w, out->h);
-        out->outpic->pts = picref->pts;
-        out->outpic->pos = picref->pos;
-        out->outpic->pixel_aspect = picref->pixel_aspect;
-        out->outpic->interlaced      = picref->interlaced;
-        out->outpic->top_field_first = picref->top_field_first;
+        avfilter_copy_picref_props(out->outpic, picref);
         avfilter_start_frame(out, avfilter_ref_pic(out->outpic, ~0));
     }
 }

Modified: trunk/libavfilter/vf_scale.c
==============================================================================
--- trunk/libavfilter/vf_scale.c	Sun Jul 11 16:13:23 2010	(r24195)
+++ trunk/libavfilter/vf_scale.c	Sun Jul 11 16:44:43 2010	(r24196)
@@ -152,10 +152,7 @@ static void start_frame(AVFilterLink *li
     scale->vsub = av_pix_fmt_descriptors[link->format].log2_chroma_h;
 
     outpicref = avfilter_get_video_buffer(outlink, AV_PERM_WRITE, outlink->w, outlink->h);
-    outpicref->pts = picref->pts;
-    outpicref->pos = picref->pos;
-    outpicref->interlaced           = picref->interlaced;
-    outpicref->top_field_first      = picref->top_field_first;
+    avfilter_copy_picref_props(outpicref, picref);
 
     outlink->outpic = outpicref;
 



More information about the ffmpeg-cvslog mailing list