From c802389393094ff76cb48cd816362ca731387a45 Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Fri, 6 May 2016 18:31:05 +0200 Subject: h2645_parse: initialize the GetBitContext to the proper size Signed-off-by: Derek Buitenhuis --- libavcodec/h2645_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/h2645_parse.c b/libavcodec/h2645_parse.c index d9721a2317..496cd8d54e 100644 --- a/libavcodec/h2645_parse.c +++ b/libavcodec/h2645_parse.c @@ -325,7 +325,7 @@ int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length, nal->size_bits = get_bit_length(nal, skip_trailing_zeros); - ret = init_get_bits8(&nal->gb, nal->data, nal->size_bits); + ret = init_get_bits(&nal->gb, nal->data, nal->size_bits); if (ret < 0) return ret; -- cgit v1.2.3