[FFmpeg-cvslog] r20706 - trunk/libavcodec/snow.c

michael subversion
Wed Dec 2 21:07:23 CET 2009


Author: michael
Date: Wed Dec  2 21:07:23 2009
New Revision: 20706

Log:
Fix 1 pass RC in snow.
Fixes issue547.

Modified:
   trunk/libavcodec/snow.c

Modified: trunk/libavcodec/snow.c
==============================================================================
--- trunk/libavcodec/snow.c	Wed Dec  2 18:21:43 2009	(r20705)
+++ trunk/libavcodec/snow.c	Wed Dec  2 21:07:23 2009	(r20706)
@@ -4451,6 +4451,8 @@ static int encode_frame(AVCodecContext *
     frame_start(s);
 
     s->m.current_picture_ptr= &s->m.current_picture;
+    s->m.last_picture.pts= s->m.current_picture.pts;
+    s->m.current_picture.pts= pict->pts;
     if(pict->pict_type == FF_P_TYPE){
         int block_width = (width +15)>>4;
         int block_height= (height+15)>>4;



More information about the ffmpeg-cvslog mailing list