[FFmpeg-devel] [PATCH v5] avcodec/cbs_vp8: Use little endian in fixed() and improve the pos check
Dai, Jianhui J
jianhui.j.dai at intel.com
Thu Jan 25 02:42:44 EET 2024
> -----Original Message-----
> From: ffmpeg-devel <ffmpeg-devel-bounces at ffmpeg.org> On Behalf Of
> Anton Khirnov
> Sent: Wednesday, January 24, 2024 7:41 PM
> To: ffmpeg-devel at ffmpeg.org
> Subject: Re: [FFmpeg-devel] [PATCH v5] avcodec/cbs_vp8: Use little endian in
> fixed() and improve the pos check
>
> Quoting Dai, Jianhui J (2024-01-23 03:58:24)
> > This commit adds value range checks to cbs_vp8_read_unsigned_le,
> > migrates fixed() to use it, and enforces little-endian consistency for
> > all read methods.
> >
> > The VP8 compressed header may not be byte-aligned due to boolean
> coding.
> > Use bitwise comparison to prevent the potential overread.
> >
> > TETS: ffmpeg -i fate-suite/vp8-test-vectors-r1/* -vcodec copy -bsf:v
> > trace_headers -f null -
> >
> > Signed-off-by: Jianhui Dai <jianhui.j.dai at intel.com>
> > ---
> > libavcodec/cbs_vp8.c | 53
> > +++++++++++++++++++++++++++++++-------------
> > 1 file changed, 37 insertions(+), 16 deletions(-)
>
> This patch seems to contain many unrelated cosmetic changes. Those should
> be moved to a separate patch.
Sure. I will split this patch for separate ones for easier review.
>
> --
> Anton Khirnov
> _______________________________________________
> 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