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

Mark Thompson sw at jkqxz.net
Tue Apr 2 01:54:53 EEST 2019


On 25/03/2019 14:22, James Almer wrote:
> Signed-off-by: James Almer <jamrial at 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


More information about the ffmpeg-devel mailing list