OSDN Git Service

avcodec/hevc_sei: fix amount of bits skipped when reading picture timing SEI message
authorJames Almer <jamrial@gmail.com>
Sat, 6 May 2017 23:31:45 +0000 (20:31 -0300)
committerJames Almer <jamrial@gmail.com>
Wed, 10 May 2017 17:56:17 +0000 (14:56 -0300)
commitf738140807f504c9af7850042067777832f05e88
treee99fba4427a8893bae9212ca883e67264cc63724
parent3d232196372f309a75ed074c4cef30578eec1782
avcodec/hevc_sei: fix amount of bits skipped when reading picture timing SEI message

The code was skipping the entire reported SEI message size regardless of
the amount of bits read.
While in theory safe for NALU where the picture timing SEI message is alone
or at the end as we're using the checked bitstream reader, it isn't in any
other situation, where every SEI message in the NALU after the picture
timing one would potentially fail to parse.

Change the function name to one more in line with the rest of file, and
remove the bogus "Skipped SEI" debug message while at it.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
libavcodec/hevc_sei.c