summaryrefslogtreecommitdiffstats
path: root/libavcodec/rv34.c
diff options
context:
space:
mode:
authorAndreas Rheinhardt <[email protected]>2025-02-26 11:13:15 +0100
committerAndreas Rheinhardt <[email protected]>2025-03-07 15:19:02 +0100
commit3defca7eae025b2566115192af2078e7e780f080 (patch)
tree7b71f7d2d1cbcb1861f65ba823b32c85104ae72c /libavcodec/rv34.c
parentf9b8f30680b6107fe5c32f3ba5115359368ec234 (diff)
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 <[email protected]>
Diffstat (limited to 'libavcodec/rv34.c')
-rw-r--r--libavcodec/rv34.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/rv34.c b/libavcodec/rv34.c
index d8d307f969..ddc95c3a78 100644
--- a/libavcodec/rv34.c
+++ b/libavcodec/rv34.c
@@ -342,7 +342,7 @@ int ff_rv34_get_start_offset(GetBitContext *gb, int mb_size)
for(i = 0; i < 5; i++)
if(rv34_mb_max_sizes[i] >= mb_size - 1)
break;
- return rv34_mb_bits_sizes[i];
+ return get_bits(gb, rv34_mb_bits_sizes[i]);
}
/**