[FFmpeg-devel] [PATCH v2 1/2] lavc/vvc: Use sps_chroma_qp_table return code
Nuo Mi
nuomi2021 at gmail.com
Wed Jun 5 16:51:37 EEST 2024
this code is simple, you can combine it with the next one
On Wed, Jun 5, 2024 at 5:24 PM Frank Plowman <post at frankplowman.com> wrote:
> Signed-off-by: Frank Plowman <post at frankplowman.com>
> ---
> libavcodec/vvc/ps.c | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/libavcodec/vvc/ps.c b/libavcodec/vvc/ps.c
> index 1b23675c98..bfc3c121fd 100644
> --- a/libavcodec/vvc/ps.c
> +++ b/libavcodec/vvc/ps.c
> @@ -186,8 +186,11 @@ static int sps_derive(VVCSPS *sps, void *log_ctx)
> sps_inter(sps);
> sps_partition_constraints(sps);
> sps_ladf(sps);
> - if (r->sps_chroma_format_idc != 0)
> - sps_chroma_qp_table(sps);
> + if (r->sps_chroma_format_idc != 0) {
> + ret = sps_chroma_qp_table(sps);
> + if (ret < 0)
> + return ret;
> + }
>
> return 0;
> }
> --
> 2.45.1
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>
> To unsubscribe, visit link above, or email
> ffmpeg-devel-request at ffmpeg.org with subject "unsubscribe".
>
More information about the ffmpeg-devel
mailing list