Message ID | 20240605092344.83464-1-post@frankplowman.com |
---|---|
State | New |
Headers | show |
Series | [FFmpeg-devel,v2,1/2] lavc/vvc: Use sps_chroma_qp_table return code | expand |
Context | Check | Description |
---|---|---|
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
this code is simple, you can combine it with the next one On Wed, Jun 5, 2024 at 5:24 PM Frank Plowman <post@frankplowman.com> wrote: > Signed-off-by: Frank Plowman <post@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@ffmpeg.org > https://ffmpeg.org/mailman/listinfo/ffmpeg-devel > > To unsubscribe, visit link above, or email > ffmpeg-devel-request@ffmpeg.org with subject "unsubscribe". >
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; }
Signed-off-by: Frank Plowman <post@frankplowman.com> --- libavcodec/vvc/ps.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-)