Mercurial > libavcodec.hg
diff rv40.c @ 6714:05c3a4b419e9 libavcodec
Calculate motion vector information based on PTS provided in slice header
| author | kostya |
|---|---|
| date | Mon, 28 Apr 2008 13:37:36 +0000 |
| parents | 5b3acf9fd50a |
| children | e943e1409077 |
line wrap: on
line diff
--- a/rv40.c Mon Apr 28 10:21:58 2008 +0000 +++ b/rv40.c Mon Apr 28 13:37:36 2008 +0000 @@ -103,7 +103,7 @@ static int rv40_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceInfo *si) { - int t, mb_bits; + int mb_bits; int w = r->s.width, h = r->s.height; int mb_size; @@ -117,7 +117,7 @@ return -1; si->vlc_set = get_bits(gb, 2); skip_bits1(gb); - t = get_bits(gb, 13); /// ??? + si->pts = get_bits(gb, 13); if(!si->type || !get_bits1(gb)) rv40_parse_picture_size(gb, &w, &h); if(avcodec_check_dimensions(r->s.avctx, w, h) < 0)
