[FFmpeg-cvslog] h2645_parse: initialize the GetBitContext to the proper size

Hendrik Leppkes git at videolan.org
Sat May 7 22:22:52 CEST 2016


ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri May  6 18:31:05 2016 +0200| [c802389393094ff76cb48cd816362ca731387a45] | committer: Derek Buitenhuis

h2645_parse: initialize the GetBitContext to the proper size

Signed-off-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=c802389393094ff76cb48cd816362ca731387a45
---

 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 d9721a2..496cd8d 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;
 



More information about the ffmpeg-cvslog mailing list