aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-03-16 16:57:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-03-16 16:57:27 +0000
commit7813d6a3077d09a3deef6d23b8a8cd3f96cb0abc (patch)
treef503f2e843edb5b972544322db354f9df90afae7 /libavcodec
parent3edcacde04911dac4c56fd74053505a493e561f8 (diff)
downloadffmpeg-7813d6a3077d09a3deef6d23b8a8cd3f96cb0abc.tar.gz
1000000l (using uninitalized variable for initalizing bits per MV table)
Originally committed as revision 2900 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/h263.c2
-rw-r--r--libavcodec/mpeg12.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/h263.c b/libavcodec/h263.c
index 8a60ff08b4..6c396b3b04 100644
--- a/libavcodec/h263.c
+++ b/libavcodec/h263.c
@@ -1785,7 +1785,7 @@ static void init_mv_penalty_and_fcode(MpegEncContext *s)
else{
int val, bit_size, range, code;
- bit_size = s->f_code - 1;
+ bit_size = f_code - 1;
range = 1 << bit_size;
val=mv;
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c
index f3d118469d..2b5d0749bd 100644
--- a/libavcodec/mpeg12.c
+++ b/libavcodec/mpeg12.c
@@ -796,7 +796,7 @@ void ff_mpeg1_encode_init(MpegEncContext *s)
else{
int val, bit_size, range, code;
- bit_size = s->f_code - 1;
+ bit_size = f_code - 1;
range = 1 << bit_size;
val=mv;