diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-02-26 11:13:15 +0100 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2025-03-07 15:19:02 +0100 |
commit | 3defca7eae025b2566115192af2078e7e780f080 (patch) | |
tree | 7b71f7d2d1cbcb1861f65ba823b32c85104ae72c /libavcodec/rv30.c | |
parent | f9b8f30680b6107fe5c32f3ba5115359368ec234 (diff) | |
download | ffmpeg-3defca7eae025b2566115192af2078e7e780f080.tar.gz |
avcodec/rv34: Make ff_rv34_get_start_offset() honor its name
Up until now, it only returned the number of bits for the
start offset, but not the start offset; the GetBitContext
passed to it was unused.
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rv30.c')
-rw-r--r-- | libavcodec/rv30.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/rv30.c b/libavcodec/rv30.c index 5e1dd01aa1..351276995b 100644 --- a/libavcodec/rv30.c +++ b/libavcodec/rv30.c @@ -38,7 +38,6 @@ static int rv30_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceInfo *si) { AVCodecContext *avctx = r->s.avctx; - int mb_bits; int w = r->s.width, h = r->s.height; int mb_size; int rpr; @@ -76,8 +75,7 @@ static int rv30_parse_slice_header(RV34DecContext *r, GetBitContext *gb, SliceIn 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); + si->start = ff_rv34_get_start_offset(gb, mb_size); skip_bits1(gb); return 0; } |