1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

avcodec/cbs_av1: fix parsing spatial_id

Reviewed-by: Mark Thompson <sw@jkqxz.net>
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
James Almer 2019-03-25 01:08:30 -03:00
parent b97a7dd031
commit 461303f94a

View File

@ -956,7 +956,7 @@ static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
if (obu->header.obu_extension_flag) { if (obu->header.obu_extension_flag) {
priv->temporal_id = obu->header.temporal_id; priv->temporal_id = obu->header.temporal_id;
priv->spatial_id = obu->header.temporal_id; priv->spatial_id = obu->header.spatial_id;
if (obu->header.obu_type != AV1_OBU_SEQUENCE_HEADER && if (obu->header.obu_type != AV1_OBU_SEQUENCE_HEADER &&
obu->header.obu_type != AV1_OBU_TEMPORAL_DELIMITER && obu->header.obu_type != AV1_OBU_TEMPORAL_DELIMITER &&