mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-28 05:50:43 +00:00
moving f/b_code init to where it should be
Originally committed as revision 2901 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
7813d6a307
commit
7976241aef
@ -519,6 +519,9 @@ static void MPV_common_defaults(MpegEncContext *s){
|
||||
s->input_picture_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)
|
||||
|
||||
if(ff_rate_control_init(s) < 0)
|
||||
return -1;
|
||||
|
||||
/* motion detector init */
|
||||
s->f_code = 1;
|
||||
s->b_code = 1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user