aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegts.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-30 02:39:55 +0200
committerJustin Ruggles <justin.ruggles@gmail.com>2012-12-07 16:15:02 -0500
commit41540b36a19d326e778268e910aff4217b20eb97 (patch)
treec97113430eb08fcc5ea32477428f7de84ebcd1cf /libavformat/mpegts.c
parentb57c1da81e4f9d46af6ad9f69e6e2255d5b8aaff (diff)
downloadffmpeg-41540b36a19d326e778268e910aff4217b20eb97.tar.gz
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 <michaelni@gmx.at> Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Diffstat (limited to 'libavformat/mpegts.c')
-rw-r--r--libavformat/mpegts.c13
1 files changed, 0 insertions, 13 deletions
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;