[FFmpeg-devel] [PATCH v5 02/10] avcodec: add cbs for H266/VVC

Thomas Siedel thomas.ff at spin-digital.com
Fri Feb 10 20:06:21 EET 2023


On Wed, 1 Feb 2023 at 09:21, "zhilizhao(赵志立)" <quinkblack at foxmail.com>
wrote:

>
>
> > On Jan 3, 2023, at 21:40, Thomas Siedel <thomas.ff at spin-digital.com>
> wrote:
> ...
> > diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c
> > index 4ee06003c3..8ae8ae6cda 100644
> > --- a/libavcodec/cbs_h2645.c
> > +++ b/libavcodec/cbs_h2645.c
> > @@ -24,10 +24,16 @@
> > #include "cbs_internal.h"
> > #include "cbs_h264.h"
> > #include "cbs_h265.h"
> > +#include "cbs_h266.h"
> > #include "h264.h"
> > #include "h2645_parse.h"
> > #include "hevc.h"
> > +#include "vvc.h"
> >
> > +static av_always_inline unsigned int h266_ceil(unsigned int v, unsigned
> int align)
> > +{
> > +    return (((v) + (align) - 1) / (align));
> > +}
>
> Does AV_CEIL_RSHIFT() work for the usecase?
>
>
Yes, it can be used instead. Thank you for the suggestion.
I changed it now in the new version of the patch set.


More information about the ffmpeg-devel mailing list