[FFmpeg-devel] [PATCH 2/5] avcodec/nuv: Move comptype check up

Michael Niedermayer michael at niedermayer.cc
Mon Nov 25 01:09:18 EET 2019


On Wed, Nov 06, 2019 at 01:31:20AM +0100, Carl Eugen Hoyos wrote:
> Am Sa., 2. Nov. 2019 um 17:08 Uhr schrieb Michael Niedermayer
> <michael at niedermayer.cc>:
> >
> > Fixes: Timeout (23sec -> 5ms)
> > Fixes: 18517/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_NUV_fuzzer-5753135536013312
> >
> > Found-by: continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
> > Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>
> > ---
> >  libavcodec/nuv.c | 8 +++++---
> >  1 file changed, 5 insertions(+), 3 deletions(-)
> >
> > diff --git a/libavcodec/nuv.c b/libavcodec/nuv.c
> > index bb80e3e884..0fa61a239d 100644
> > --- a/libavcodec/nuv.c
> > +++ b/libavcodec/nuv.c
> > @@ -219,6 +219,11 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
> >      case NUV_RTJPEG:
> >          minsize = c->width/16 * (c->height/16) * 6;
> >          break;
> 
> > +    case NUV_BLACK: case NUV_COPY_LAST: case NUV_LZO: case NUV_RTJPEG_IN_LZO:
> 
> This style is ugly and different from the rest of the file.

will apply without this style

thx

[...]
-- 
Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB

I know you won't believe me, but the highest form of Human Excellence is
to question oneself and others. -- Socrates
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20191125/1a0a6abb/attachment.sig>


More information about the ffmpeg-devel mailing list