comparison h261.c @ 2453:f67b63ed036d libavcodec

avoid buf_size == 0 checks in every decoder
author michael
date Sun, 23 Jan 2005 18:09:06 +0000
parents a6e4da1c28ee
children 511e3afc43e1
comparison
equal deleted inserted replaced
2452:73a66a4a6ab4 2453:f67b63ed036d
923 printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]); 923 printf("bytes=%x %x %x %x\n", buf[0], buf[1], buf[2], buf[3]);
924 #endif 924 #endif
925 s->flags= avctx->flags; 925 s->flags= avctx->flags;
926 s->flags2= avctx->flags2; 926 s->flags2= avctx->flags2;
927 927
928 /* no supplementary picture */
929 if (buf_size == 0) {
930 return 0;
931 }
932
933 h->gob_start_code_skipped=0; 928 h->gob_start_code_skipped=0;
934 929
935 retry: 930 retry:
936 931
937 init_get_bits(&s->gb, buf, buf_size*8); 932 init_get_bits(&s->gb, buf, buf_size*8);