aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rv40.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2008-04-28 13:37:36 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2008-04-28 13:37:36 +0000
commit39902a8c932a606554fce90551b461993aab10cc (patch)
tree748a123587bba317b8479ac3264ed0b60344fd0b /libavcodec/rv40.c
parent038f846e41b2ef7e760a39876beaebea999e27e9 (diff)
downloadffmpeg-39902a8c932a606554fce90551b461993aab10cc.tar.gz
Calculate motion vector information based on PTS provided in slice header
Originally committed as revision 13011 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/rv40.c')
-rw-r--r--libavcodec/rv40.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavcodec/rv40.c b/libavcodec/rv40.c
index cc931bdf4b..71bce93825 100644
--- a/libavcodec/rv40.c
+++ b/libavcodec/rv40.c
@@ -103,7 +103,7 @@ static void rv40_parse_picture_size(GetBitContext *gb, int *w, int *h)
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 @@ static int rv40_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn
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)