comparison rv10.c @ 1025:1f9afd8b9131 libavcodec

GetBitContext.size is allways multiplied by 8 -> use size_in_bits to avoid useless *8 in a few inner loops
author michaelni
date Tue, 21 Jan 2003 17:34:12 +0000
parents 7fccaa0d699d
children b32afefe7d33
comparison
equal deleted inserted replaced
1024:9cc1031e1864 1025:1f9afd8b9131
393 UINT8 *buf, int buf_size) 393 UINT8 *buf, int buf_size)
394 { 394 {
395 MpegEncContext *s = avctx->priv_data; 395 MpegEncContext *s = avctx->priv_data;
396 int i, mb_count, mb_pos, left; 396 int i, mb_count, mb_pos, left;
397 397
398 init_get_bits(&s->gb, buf, buf_size); 398 init_get_bits(&s->gb, buf, buf_size*8);
399 399
400 mb_count = rv10_decode_picture_header(s); 400 mb_count = rv10_decode_picture_header(s);
401 if (mb_count < 0) { 401 if (mb_count < 0) {
402 fprintf(stderr, "HEADER ERROR\n"); 402 fprintf(stderr, "HEADER ERROR\n");
403 return -1; 403 return -1;