changeset 10625:328e2a3171d2 libavcodec

Fix 1 pass RC in snow. Fixes issue547.
author michael
date Wed, 02 Dec 2009 20:07:23 +0000
parents 8db678424a18
children 099e9b33c1b9
files snow.c
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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;