Mercurial > libavcodec.hg
comparison rv30.c @ 8075:e71badf6877a libavcodec
Detect split RV30 slices
author | kostya |
---|---|
date | Tue, 28 Oct 2008 05:37:02 +0000 |
parents | e943e1409077 |
children | 51c9946c70f9 |
comparison
equal
deleted
inserted
replaced
8074:31e90d4abe28 | 8075:e71badf6877a |
---|---|
38 int mb_bits; | 38 int mb_bits; |
39 int w = r->s.width, h = r->s.height; | 39 int w = r->s.width, h = r->s.height; |
40 int mb_size; | 40 int mb_size; |
41 | 41 |
42 memset(si, 0, sizeof(SliceInfo)); | 42 memset(si, 0, sizeof(SliceInfo)); |
43 skip_bits(gb, 3); | 43 if(get_bits(gb, 3)) |
44 return -1; | |
44 si->type = get_bits(gb, 2); | 45 si->type = get_bits(gb, 2); |
45 if(si->type == 1) si->type = 0; | 46 if(si->type == 1) si->type = 0; |
46 if(get_bits1(gb)) | 47 if(get_bits1(gb)) |
47 return -1; | 48 return -1; |
48 si->quant = get_bits(gb, 5); | 49 si->quant = get_bits(gb, 5); |