h264: fix HRD parameters parsing
authorMans Rullgard <mans@mansr.com>
Tue, 11 Oct 2011 15:00:21 +0000 (16:00 +0100)
committerMans Rullgard <mans@mansr.com>
Tue, 11 Oct 2011 17:24:51 +0000 (18:24 +0100)
commitfdba370f8a1bdfc22ecbdf3c7148c2f8680a4ac4
treef908af97621bbf687b604b722a0d9f16239a02ab
parent91f4732913f657f426f2707c45b9026e12b04eb2
h264: fix HRD parameters parsing

The bit_rate_value_minus1 and cpb_size_value_minus1 elements
allow a wider range than get_ue_golomb() supports.  This
adds a get_ue_golomb_long() function supporting up to 31
leading zeros, which is the maximum for these syntax
elements, and uses it in decode_hrd_parameters().

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavcodec/golomb.h
libavcodec/h264_ps.c