OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7813d6a
)
moving f/b_code init to where it should be
author
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Mar 2004 17:27:03 +0000
(17:27 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Tue, 16 Mar 2004 17:27:03 +0000
(17:27 +0000)
Originally committed as revision 2901 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegvideo.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegvideo.c
b/libavcodec/mpegvideo.c
index
f1cbfd7
..
b6ea682
100644
(file)
--- 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;
}