# HG changeset patch # User michael # Date 1159632027 0 # Node ID 83aa3105b75867559ac5e8a7e08ca1ff08f4ff65 # Parent edd600ba1cc76e003248ac5f392a9a1e41b50496 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 diff -r edd600ba1cc7 -r 83aa3105b758 rv10.c --- 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");