comparison rv10.c @ 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 c8c591fe26f8
comparison
equal deleted inserted replaced
3795:edd600ba1cc7 3796:83aa3105b758
431 } 431 }
432 } 432 }
433 433
434 if(s->avctx->has_b_frames){ 434 if(s->avctx->has_b_frames){
435 int f, new_w, new_h; 435 int f, new_w, new_h;
436 int v= s->avctx->extradata_size >= 4 ? ((uint8_t*)s->avctx->extradata)[1] : 0; 436 int v= s->avctx->extradata_size >= 4 ? 7&((uint8_t*)s->avctx->extradata)[1] : 0;
437 437
438 if (get_bits(&s->gb, 1)){ 438 if (get_bits(&s->gb, 1)){
439 av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n"); 439 av_log(s->avctx, AV_LOG_ERROR, "unknown bit3 set\n");
440 // return -1; 440 // return -1;
441 } 441 }