summaryrefslogtreecommitdiff
path: root/libavcodec/snow.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-12-02 20:07:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-12-02 20:07:23 +0000
commitc267bb038e8fe4db0a33837ae7364b73a3193d1f (patch)
tree91a75bd1d89b4900aae00b9ebc495a95b93e4b44 /libavcodec/snow.c
parentc5d6cd5c814a6d8891a16befde6be546ec615d21 (diff)
Fix 1 pass RC in snow.
Fixes issue547. Originally committed as revision 20706 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/snow.c')
-rw-r--r--libavcodec/snow.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/snow.c b/libavcodec/snow.c
index aeab1dfc75..86c86390e1 100644
--- a/libavcodec/snow.c
+++ b/libavcodec/snow.c
@@ -4451,6 +4451,8 @@ static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size,
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;