comparison svq3.c @ 5513:9f8219a3b86f libavcodec

use get_bits1(..) instead get_bits(.., 1)
author alex
date Thu, 09 Aug 2007 00:13:31 +0000
parents 07a97575d0c4
children b790f8c0ee24
comparison
equal deleted inserted replaced
5512:28dcc5cd79d2 5513:9f8219a3b86f
463 return -1; 463 return -1;
464 464
465 mb_type = MB_TYPE_16x16; 465 mb_type = MB_TYPE_16x16;
466 } 466 }
467 } else if (mb_type < 8) { /* INTER */ 467 } else if (mb_type < 8) { /* INTER */
468 if (h->thirdpel_flag && h->halfpel_flag == !get_bits (&s->gb, 1)) { 468 if (h->thirdpel_flag && h->halfpel_flag == !get_bits1 (&s->gb)) {
469 mode = THIRDPEL_MODE; 469 mode = THIRDPEL_MODE;
470 } else if (h->halfpel_flag && h->thirdpel_flag == !get_bits (&s->gb, 1)) { 470 } else if (h->halfpel_flag && h->thirdpel_flag == !get_bits1 (&s->gb)) {
471 mode = HALFPEL_MODE; 471 mode = HALFPEL_MODE;
472 } else { 472 } else {
473 mode = FULLPEL_MODE; 473 mode = FULLPEL_MODE;
474 } 474 }
475 475