diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2001-08-08 21:53:28 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2001-08-08 21:53:28 +0000 |
commit | b9ecd1ee7449900a1dc6fa9931c12bdb9d92ad5d (patch) | |
tree | 1c0c6257eb72d22d477bace214afd63c565b2076 /libavcodec | |
parent | 186f8ae1f567d4a74b2ffb5d54a012dcb1c4c89f (diff) | |
download | ffmpeg-b9ecd1ee7449900a1dc6fa9931c12bdb9d92ad5d.tar.gz |
fixed mpeg1 last block bug (mb stuffing code was not included in vlc table...)
Originally committed as revision 58 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/mpeg12.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/mpeg12.c b/libavcodec/mpeg12.c index 381fafaddf..2e758b47bc 100644 --- a/libavcodec/mpeg12.c +++ b/libavcodec/mpeg12.c @@ -456,7 +456,7 @@ void mpeg1_init_vlc(MpegEncContext *s) init_vlc(&mv_vlc, 9, 17, &mbMotionVectorTable[0][1], 2, 1, &mbMotionVectorTable[0][0], 2, 1); - init_vlc(&mbincr_vlc, 9, 34, + init_vlc(&mbincr_vlc, 9, 35, &mbAddrIncrTable[0][1], 2, 1, &mbAddrIncrTable[0][0], 2, 1); init_vlc(&mb_pat_vlc, 9, 63, @@ -1120,7 +1120,7 @@ static int mpeg1_decode_picture(AVCodecContext *avctx, ref = get_bits(&s->gb, 10); /* temporal ref */ s->pict_type = get_bits(&s->gb, 3); - dprintf("pict_type=%d\n", s->pict_type); + dprintf("pict_type=%d number=%d\n", s->pict_type, s->picture_number); skip_bits(&s->gb, 16); if (s->pict_type == P_TYPE || s->pict_type == B_TYPE) { s->full_pel[0] = get_bits1(&s->gb); |