diff mbox

[FFmpeg-devel,3/3] avcodec/cbs_av1: fix parsing spatial_id

Message ID 20190325142253.5276-3-jamrial@gmail.com
State Accepted
Commit 461303f94ab64e0cbd502cddb6e79473f8f525a1
Headers show

Commit Message

James Almer March 25, 2019, 2:22 p.m. UTC
Signed-off-by: James Almer <jamrial@gmail.com>
---
 libavcodec/cbs_av1.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Thompson April 1, 2019, 10:54 p.m. UTC | #1
On 25/03/2019 14:22, James Almer wrote:
> Signed-off-by: James Almer <jamrial@gmail.com>
> ---
>  libavcodec/cbs_av1.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
> index 22330eabf3..77548084b6 100644
> --- a/libavcodec/cbs_av1.c
> +++ b/libavcodec/cbs_av1.c
> @@ -964,7 +964,7 @@ static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
>  
>      if (obu->header.obu_extension_flag) {
>          priv->temporal_id = obu->header.temporal_id;
> -        priv->spatial_id  = obu->header.temporal_id;
> +        priv->spatial_id  = obu->header.spatial_id;

Oops :(

>  
>          if (obu->header.obu_type != AV1_OBU_SEQUENCE_HEADER &&
>              obu->header.obu_type != AV1_OBU_TEMPORAL_DELIMITER &&
> 
LGTM.

Thanks,

- Mark
diff mbox

Patch

diff --git a/libavcodec/cbs_av1.c b/libavcodec/cbs_av1.c
index 22330eabf3..77548084b6 100644
--- a/libavcodec/cbs_av1.c
+++ b/libavcodec/cbs_av1.c
@@ -964,7 +964,7 @@  static int cbs_av1_read_unit(CodedBitstreamContext *ctx,
 
     if (obu->header.obu_extension_flag) {
         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 &&
             obu->header.obu_type != AV1_OBU_TEMPORAL_DELIMITER &&