Mercurial > libavcodec.hg
comparison rv10.c @ 2031:4225c131a2eb libavcodec
warning fixes by (Michael Roitzsch <mroi at users dot sourceforge dot net>)
author | michael |
---|---|
date | Tue, 25 May 2004 18:07:25 +0000 |
parents | 141a9539e270 |
children | 29445ac45e75 |
comparison
equal
deleted
inserted
replaced
2030:f796043935f3 | 2031:4225c131a2eb |
---|---|
526 | 526 |
527 static int rv10_decode_packet(AVCodecContext *avctx, | 527 static int rv10_decode_packet(AVCodecContext *avctx, |
528 uint8_t *buf, int buf_size) | 528 uint8_t *buf, int buf_size) |
529 { | 529 { |
530 MpegEncContext *s = avctx->priv_data; | 530 MpegEncContext *s = avctx->priv_data; |
531 int i, mb_count, mb_pos, left; | 531 int mb_count, mb_pos, left; |
532 | 532 |
533 init_get_bits(&s->gb, buf, buf_size*8); | 533 init_get_bits(&s->gb, buf, buf_size*8); |
534 #if 0 | |
535 for(i=0; i<buf_size*8 && i<200; i++) | |
536 printf("%d", get_bits1(&s->gb)); | |
537 printf("\n"); | |
538 return 0; | |
539 #endif | |
540 if(s->codec_id ==CODEC_ID_RV10) | 534 if(s->codec_id ==CODEC_ID_RV10) |
541 mb_count = rv10_decode_picture_header(s); | 535 mb_count = rv10_decode_picture_header(s); |
542 else | 536 else |
543 mb_count = rv20_decode_picture_header(s); | 537 mb_count = rv20_decode_picture_header(s); |
544 if (mb_count < 0) { | 538 if (mb_count < 0) { |