Browse Source

Fix 1 pass RC in snow.

Fixes issue547.

Originally committed as revision 20706 to svn://svn.ffmpeg.org/ffmpeg/trunk
tags/v0.6
Michael Niedermayer 16 years ago
parent
commit
c267bb038e
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libavcodec/snow.c

+ 2
- 0
libavcodec/snow.c View File

@@ -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;


Loading…
Cancel
Save