|
@@ -861,6 +861,9 @@ static int cbs_h264_read_nal_unit(CodedBitstreamContext *ctx, |
|
|
if (err < 0) |
|
|
if (err < 0) |
|
|
return err; |
|
|
return err; |
|
|
|
|
|
|
|
|
|
|
|
if (!cbs_h2645_read_more_rbsp_data(&gbc)) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
|
|
|
|
pos = get_bits_count(&gbc); |
|
|
pos = get_bits_count(&gbc); |
|
|
len = unit->data_size; |
|
|
len = unit->data_size; |
|
|
|
|
|
|
|
@@ -1036,6 +1039,9 @@ static int cbs_h265_read_nal_unit(CodedBitstreamContext *ctx, |
|
|
if (err < 0) |
|
|
if (err < 0) |
|
|
return err; |
|
|
return err; |
|
|
|
|
|
|
|
|
|
|
|
if (!cbs_h2645_read_more_rbsp_data(&gbc)) |
|
|
|
|
|
return AVERROR_INVALIDDATA; |
|
|
|
|
|
|
|
|
pos = get_bits_count(&gbc); |
|
|
pos = get_bits_count(&gbc); |
|
|
len = unit->data_size; |
|
|
len = unit->data_size; |
|
|
|
|
|
|
|
|