[FFmpeg-devel] [PATCH 04/15] lavf/brstm: allow larger block sizes

Michael Niedermayer michaelni at gmx.at
Sat Jun 20 19:45:33 CEST 2015


On Sat, Jun 20, 2015 at 05:14:01PM +0000, Paul B Mahol wrote:
> Dana 20. 6. 2015. 12:02 osoba "Rodger Combs" <rodger.combs at gmail.com>
> napisala je:
> >
> > ---
> >  libavformat/brstm.c | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/libavformat/brstm.c b/libavformat/brstm.c
> > index 15e63b8..564be16 100644
> > --- a/libavformat/brstm.c
> > +++ b/libavformat/brstm.c
> > @@ -223,7 +223,7 @@ static int read_header(AVFormatContext *s)
> >      }
> >
> >      b->block_size = read32(s);
> > -    if (b->block_size > UINT16_MAX / st->codec->channels)
> > +    if (b->block_size > UINT32_MAX / st->codec->channels)
> >          return AVERROR_INVALIDDATA;
> >      b->block_size *= st->codec->channels;
> >
> > --
> > 2.4.1
> >
> > _______________________________________________
> > ffmpeg-devel mailing list
> > ffmpeg-devel at ffmpeg.org
> > http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
> 
> LGTM

applied

thanks

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

What does censorship reveal? It reveals fear. -- Julian Assange
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 181 bytes
Desc: Digital signature
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20150620/7b01494f/attachment.asc>


More information about the ffmpeg-devel mailing list