Index: libavcodec/mpegvideo.c =================================================================== RCS file: /cvsroot/ffmpeg/ffmpeg/libavcodec/mpegvideo.c,v retrieving revision 1.481 diff -u -r1.481 mpegvideo.c --- libavcodec/mpegvideo.c 8 May 2005 20:15:42 -0000 1.481 +++ libavcodec/mpegvideo.c 11 May 2005 03:07:28 -0000 @@ -2188,7 +2188,7 @@ if(s->avctx->b_frame_strategy==0){ b_frames= s->max_b_frames; while(b_frames && !s->input_picture[b_frames]) b_frames--; - }else if(s->avctx->b_frame_strategy==1){ + }else if(s->avctx->b_frame_strategy==1 && !(s->flags&CODEC_FLAG_PASS2)){ for(i=1; imax_b_frames+1; i++){ if(s->input_picture[i] && s->input_picture[i]->b_frame_score==0){ s->input_picture[i]->b_frame_score=