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/rv40.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/rv40.c')
-rw-r--r-- | libavcodec/rv40.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libavcodec/rv40.c b/libavcodec/rv40.c index 0a5136d129..d28e02c2d1 100644 --- a/libavcodec/rv40.c +++ b/libavcodec/rv40.c @@ -131,7 +131,6 @@ 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 mb_bits; int w = r->s.width, h = r->s.height; int mb_size; int ret; @@ -154,8 +153,7 @@ static int rv40_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); return 0; } |