diff snow.c @ 10625:328e2a3171d2 libavcodec

Fix 1 pass RC in snow. Fixes issue547.
author michael
date Wed, 02 Dec 2009 20:07:23 +0000
parents 404026d9adb5
children e58e93f04279
line wrap: on
line diff
--- a/snow.c	Wed Dec 02 17:21:43 2009 +0000
+++ b/snow.c	Wed Dec 02 20:07:23 2009 +0000
@@ -4451,6 +4451,8 @@
     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;