diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-03-16 17:27:03 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-03-16 17:27:03 +0000 |
commit | 7976241aefc011a6f242366edf118e3633d2a6a2 (patch) | |
tree | c4d293e7c8f5bfbbc35f6c5c883ca244b7c475bb /libavcodec/mpegvideo.c | |
parent | 7813d6a3077d09a3deef6d23b8a8cd3f96cb0abc (diff) | |
download | ffmpeg-7976241aefc011a6f242366edf118e3633d2a6a2.tar.gz |
moving f/b_code init to where it should be
Originally committed as revision 2901 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mpegvideo.c')
-rw-r--r-- | libavcodec/mpegvideo.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c index f1cbfd751a..b6ea6820f8 100644 --- a/libavcodec/mpegvideo.c +++ b/libavcodec/mpegvideo.c @@ -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; } |