mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
cbs_av1: Fix test for presence of buffer_removal_time element
The frame must be in both the spatial and temporal layers for the operating point, not just one of them.
This commit is contained in:
parent
58b8541330
commit
b567cb8d0b
@ -1388,7 +1388,7 @@ static int FUNC(uncompressed_header)(CodedBitstreamContext *ctx, RWContext *rw,
|
||||
int in_temporal_layer = (op_pt_idc >> priv->temporal_id ) & 1;
|
||||
int in_spatial_layer = (op_pt_idc >> (priv->spatial_id + 8)) & 1;
|
||||
if (seq->operating_point_idc[i] == 0 ||
|
||||
in_temporal_layer || in_spatial_layer) {
|
||||
(in_temporal_layer && in_spatial_layer)) {
|
||||
fbs(seq->decoder_model_info.buffer_removal_time_length_minus_1 + 1,
|
||||
buffer_removal_time[i], 1, i);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user