On Mon, Apr 10, 2017 at 6:42 AM, Luca Barbato <[email protected]> wrote: > From: Paul B Mahol <[email protected]> > > Signed-off-by: Luca Barbato <[email protected]> > --- > libavcodec/utvideo.c | 6 ++ > libavcodec/utvideo.h | 4 +- > libavcodec/utvideodec.c | 282 > +++++++++++++++++++++++++++++++++++++++++------- > libavformat/riff.c | 1 + > 4 files changed, 253 insertions(+), 40 deletions(-) > > diff --git a/libavcodec/utvideo.c b/libavcodec/utvideo.c > index 35e927c..77557e3 100644 > --- a/libavcodec/utvideo.c > +++ b/libavcodec/utvideo.c > @@ -39,3 +39,9 @@ int ff_ut_huff_cmp_len(const void *a, const void *b) > const HuffEntry *aa = a, *bb = b; > return (aa->len - bb->len)*256 + aa->sym - bb->sym; > } > + > +int ff_ut10_huff_cmp_len(const void *a, const void *b) > +{ > + const HuffEntry *aa = a, *bb = b; > + return (aa->len - bb->len)*1024 + aa->sym - bb->sym;
nit spaces around * > +} I gather the unsafe bytestream is used because input is already sanitized right? -- Vittorio _______________________________________________ libav-devel mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-devel
