summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2002-06-25 10:15:42 +0000
committerMichael Niedermayer <michaelni@gmx.at>2002-06-25 10:15:42 +0000
commita406617f2a2e7d44cf8ce29b9c23fa3a7042c1d6 (patch)
tree8bd7ad6d7c93babb0e0f654dd44ec39a504bdfc6 /libavcodec
parentdb42e13bfbfdb2a9b909078870ef03e4cf7357b5 (diff)
init dc_scale tables to defaults (fixes mjpeg sig11)
Originally committed as revision 706 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/mpegvideo.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
index 105fb55029..fc15b98c1c 100644
--- a/libavcodec/mpegvideo.c
+++ b/libavcodec/mpegvideo.c
@@ -495,7 +495,9 @@ int MPV_encode_init(AVCodecContext *avctx)
}
s->mv_penalty= default_mv_penalty;
s->fcode_tab= default_fcode_tab;
-
+ s->y_dc_scale_table=
+ s->c_dc_scale_table= ff_mpeg1_dc_scale_table;
+
if (s->out_format == FMT_H263)
h263_encode_init(s);
else if (s->out_format == FMT_MPEG1)