Commit a389ad1f authored by michael's avatar michael

moving f/b_code init to where it should be


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@2901 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 35c93225
...@@ -519,6 +519,9 @@ static void MPV_common_defaults(MpegEncContext *s){ ...@@ -519,6 +519,9 @@ static void MPV_common_defaults(MpegEncContext *s){
s->input_picture_number = 0; s->input_picture_number = 0;
s->picture_in_gop_number = 0; s->picture_in_gop_number = 0;
s->f_code = 1;
s->b_code = 1;
} }
/** /**
...@@ -1167,10 +1170,6 @@ int MPV_encode_init(AVCodecContext *avctx) ...@@ -1167,10 +1170,6 @@ int MPV_encode_init(AVCodecContext *avctx)
if(ff_rate_control_init(s) < 0) if(ff_rate_control_init(s) < 0)
return -1; return -1;
/* motion detector init */
s->f_code = 1;
s->b_code = 1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment