[FFmpeg-cvslog] r16536 - trunk/libavcodec/rv30.c
kostya
subversion
Sun Jan 11 11:50:00 CET 2009
Author: kostya
Date: Sun Jan 11 11:50:00 2009
New Revision: 16536
Log:
30l: when reading mb_offset in RV30 slice header its size
should be calculated from current frame dimensions
Modified:
trunk/libavcodec/rv30.c
Modified: trunk/libavcodec/rv30.c
==============================================================================
--- trunk/libavcodec/rv30.c Sun Jan 11 11:42:24 2009 (r16535)
+++ trunk/libavcodec/rv30.c Sun Jan 11 11:50:00 2009 (r16536)
@@ -51,13 +51,12 @@ static int rv30_parse_slice_header(RV34D
skip_bits1(gb);
si->pts = get_bits(gb, 13);
rpr = get_bits(gb, r->rpr);
- if(!rpr){
- si->width = w;
- si->height = h;
- }else{
- si->width = r->s.avctx->extradata[6 + rpr*2] << 2;
- si->height = r->s.avctx->extradata[7 + rpr*2] << 2;
+ if(rpr){
+ w = r->s.avctx->extradata[6 + rpr*2] << 2;
+ h = r->s.avctx->extradata[7 + rpr*2] << 2;
}
+ si->width = w;
+ si->height = h;
mb_size = ((w + 15) >> 4) * ((h + 15) >> 4);
mb_bits = ff_rv34_get_start_offset(gb, mb_size);
si->start = get_bits(gb, mb_bits);
More information about the ffmpeg-cvslog
mailing list