comparison mpeg12.c @ 45:933cc4acab5c libavcodec

fixed mpeg1 last block bug (mb stuffing code was not included in vlc table...)
author glantau
date Wed, 08 Aug 2001 21:53:28 +0000
parents 5bf15419d47e
children 764f2eaf711e
comparison
equal deleted inserted replaced
44:92d51f683931 45:933cc4acab5c
454 vlc_dc_chroma_bits, 1, 1, 454 vlc_dc_chroma_bits, 1, 1,
455 vlc_dc_chroma_code, 2, 2); 455 vlc_dc_chroma_code, 2, 2);
456 init_vlc(&mv_vlc, 9, 17, 456 init_vlc(&mv_vlc, 9, 17,
457 &mbMotionVectorTable[0][1], 2, 1, 457 &mbMotionVectorTable[0][1], 2, 1,
458 &mbMotionVectorTable[0][0], 2, 1); 458 &mbMotionVectorTable[0][0], 2, 1);
459 init_vlc(&mbincr_vlc, 9, 34, 459 init_vlc(&mbincr_vlc, 9, 35,
460 &mbAddrIncrTable[0][1], 2, 1, 460 &mbAddrIncrTable[0][1], 2, 1,
461 &mbAddrIncrTable[0][0], 2, 1); 461 &mbAddrIncrTable[0][0], 2, 1);
462 init_vlc(&mb_pat_vlc, 9, 63, 462 init_vlc(&mb_pat_vlc, 9, 63,
463 &mbPatTable[0][1], 2, 1, 463 &mbPatTable[0][1], 2, 1,
464 &mbPatTable[0][0], 2, 1); 464 &mbPatTable[0][0], 2, 1);
1118 1118
1119 init_get_bits(&s->gb, buf, buf_size); 1119 init_get_bits(&s->gb, buf, buf_size);
1120 1120
1121 ref = get_bits(&s->gb, 10); /* temporal ref */ 1121 ref = get_bits(&s->gb, 10); /* temporal ref */
1122 s->pict_type = get_bits(&s->gb, 3); 1122 s->pict_type = get_bits(&s->gb, 3);
1123 dprintf("pict_type=%d\n", s->pict_type); 1123 dprintf("pict_type=%d number=%d\n", s->pict_type, s->picture_number);
1124 skip_bits(&s->gb, 16); 1124 skip_bits(&s->gb, 16);
1125 if (s->pict_type == P_TYPE || s->pict_type == B_TYPE) { 1125 if (s->pict_type == P_TYPE || s->pict_type == B_TYPE) {
1126 s->full_pel[0] = get_bits1(&s->gb); 1126 s->full_pel[0] = get_bits1(&s->gb);
1127 f_code = get_bits(&s->gb, 3); 1127 f_code = get_bits(&s->gb, 3);
1128 if (f_code == 0) 1128 if (f_code == 0)