Commit eda3bc94 authored by michael's avatar michael

seems only 3 bits are used for the number of resolutions, some rv30 files have...

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


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@6395 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 7996f222
......@@ -433,7 +433,7 @@ static int rv20_decode_picture_header(MpegEncContext *s)
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");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment