1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-20 07:48:15 +02:00
FFmpeg/libavcodec
Mark Harris c51c08e0e7 avcodec: Use get_ue_golomb_long() when needed
get_ue_golomb() cannot decode values larger than 8190 (the maximum
value that can be golomb encoded in 25 bits) and produces the error
"Invalid UE golomb code" if a larger value is encountered.  Use
get_ue_golomb_long() instead (which supports 63 bits, up to 4294967294)
when valid h264/hevc values can exceed 8190.

This updates decoding of the following values:   (maximum)
  first_mb_in_slice                                36863* for level 5.2
  abs_diff_pic_num_minus1                         131071
  difference_of_pic_nums_minus1                   131071
  idr_pic_id                                       65535
  recovery_frame_cnt                               65535
  frame_packing_arrangement_id                4294967294
  frame_packing_arrangement_repetition_period      16384
  display_orientation_repetition_period            16384

An alternative would be to modify get_ue_golomb() to handle encoded
values of up to 49 bits as was done for get_se_golomb() in a92816c.
In that case get_ue_golomb() could continue to be used for all of
these except frame_packing_arrangement_id.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-12-29 13:11:51 +01:00
..
2015-12-04 02:35:42 +01:00
2015-12-15 22:45:15 -05:00
2015-12-21 17:23:38 +00:00
2015-12-19 09:32:53 -08:00
2015-12-19 09:32:53 -08:00
2015-11-30 18:29:57 -05:00
2015-12-22 12:54:23 +01:00
2015-11-30 10:58:46 -05:00
2015-12-26 20:29:22 -08:00
2015-12-18 15:30:04 +01:00
2015-12-18 18:08:00 +01:00
2015-12-07 16:10:51 +01:00
2015-12-05 21:11:52 +01:00
2015-12-05 21:11:52 +01:00
2015-12-20 21:31:55 +01:00
2015-12-22 12:54:23 +01:00
2015-11-30 23:31:12 +01:00
2015-12-26 20:29:22 -08:00
2015-12-21 11:14:02 +01:00
2015-12-22 12:54:23 +01:00
2015-12-22 12:54:23 +01:00
2015-12-22 12:54:23 +01:00
2015-12-07 09:25:02 +01:00