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>
Sat, 20 May 2017 02:38:04 +0000 (23:38 -0300)
commit24d744cabe0883655884c8786b3ad908736d5d09
treecf0080dc6ff0edce370a0252179acf1bf3f55dae
parent870f1e3836c5cf6b9f3e4390e9d8e7e2bc276b13
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.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: James Almer <jamrial@gmail.com>
(cherry picked from commit f738140807f504c9af7850042067777832f05e88)

Conflicts:
libavcodec/hevc_sei.c
libavcodec/hevc_sei.c