cbs_h265: Fix reading of unknown parameter set extension data

pull/272/head
Mark Thompson 7 years ago
parent 30645174e3
commit f763489364
  1. 3
      libavcodec/cbs_h265_syntax_template.c

@ -67,7 +67,8 @@ static int FUNC(extension_data)(CodedBitstreamContext *ctx, RWContext *rw,
BitstreamContext start;
uint8_t bit;
start = *rw;
for (k = 0; cbs_h2645_read_more_rbsp_data(rw); k++);
for (k = 0; cbs_h2645_read_more_rbsp_data(rw); k++)
bitstream_skip(rw, 1);
current->bit_length = k;
if (k > 0) {
*rw = start;

Loading…
Cancel
Save