From 41540b36a19d326e778268e910aff4217b20eb97 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 30 Sep 2012 02:39:55 +0200 Subject: bitstream: add get_bits64() to support reading more than 32 bits at once Also remove a duplicate function in the MPEG-TS demuxer. Signed-off-by: Michael Niedermayer Signed-off-by: Justin Ruggles --- libavformat/mpegts.c | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'libavformat/mpegts.c') diff --git a/libavformat/mpegts.c b/libavformat/mpegts.c index 4aabcd7e60..7c4d447ddc 100644 --- a/libavformat/mpegts.c +++ b/libavformat/mpegts.c @@ -665,19 +665,6 @@ static void new_pes_packet(PESContext *pes, AVPacket *pkt) pes->flags = 0; } -static uint64_t get_bits64(GetBitContext *gb, int bits) -{ - uint64_t ret = 0; - while (bits > 17) { - ret <<= 17; - ret |= get_bits(gb, 17); - bits -= 17; - } - ret <<= bits; - ret |= get_bits(gb, bits); - return ret; -} - static int read_sl_header(PESContext *pes, SLConfigDescr *sl, const uint8_t *buf, int buf_size) { GetBitContext gb; -- cgit v1.2.3