Mercurial > libavcodec.hg
changeset 3796:83aa3105b758 libavcodec
seems only 3 bits are used for the number of resolutions, some rv30 files have this set to 10 even though there are just 2 resolutions in the extradata
author | michael |
---|---|
date | Sat, 30 Sep 2006 16:00:27 +0000 |
parents | edd600ba1cc7 |
children | 0596dbc4f858 |
files | rv10.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/rv10.c Sat Sep 30 11:45:09 2006 +0000 +++ b/rv10.c Sat Sep 30 16:00:27 2006 +0000 @@ -433,7 +433,7 @@ if(s->avctx->has_b_frames){ int f, new_w, new_h; - int v= s->avctx->extradata_size >= 4 ? ((uint8_t*)s->avctx->extradata)[1] : 0; + int v= s->avctx->extradata_size >= 4 ? 7&((uint8_t*)s->avctx->extradata)[1] : 0; if (get_bits(&s->gb, 1)){ av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n");