aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2006-09-30 16:00:27 +0000
committerMichael Niedermayer <michaelni@gmx.at>2006-09-30 16:00:27 +0000
commit0d415b2dd7e2aa607c464ef98ed0788a70d33885 (patch)
tree684b252d0aacd43e23740ab8ec582ab701e5b86a /libavcodec
parent0244f743786045dca130d791e28587a38371a8f3 (diff)
downloadffmpeg-0d415b2dd7e2aa607c464ef98ed0788a70d33885.tar.gz
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
Originally committed as revision 6395 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/rv10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv10.c b/libavcodec/rv10.c
index 63d2942268..adda0e849c 100644
--- a/libavcodec/rv10.c
+++ b/libavcodec/rv10.c
@@ -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");