1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-28 20:53:54 +02:00

h2645_parse: initialize the GetBitContext to the proper size

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
This commit is contained in:
Hendrik Leppkes 2016-05-06 18:31:05 +02:00 committed by Derek Buitenhuis
parent 6eb1b40ad8
commit c802389393

View File

@ -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;