[FFmpeg-devel] [PATCH] avcodec/jpeg2000dec: make SOC finding code more robust

Michael Niedermayer michaelni at gmx.at
Thu Sep 5 01:22:25 CEST 2013


On Tue, Jul 23, 2013 at 11:35:37AM +0000, Paul B Mahol wrote:
> On 7/23/13, Michael Niedermayer <michaelni at gmx.at> wrote:
> > Fixes file from Ticket860
> >
> > Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> > ---
> >  libavcodec/jpeg2000dec.c |    3 +++
> >  1 file changed, 3 insertions(+)
> >
> > diff --git a/libavcodec/jpeg2000dec.c b/libavcodec/jpeg2000dec.c
> > index c6f6f6c..d59fb5f 100644
> > --- a/libavcodec/jpeg2000dec.c
> > +++ b/libavcodec/jpeg2000dec.c
> > @@ -1623,6 +1623,9 @@ static int jpeg2000_decode_frame(AVCodecContext
> > *avctx, void *data,
> >          bytestream2_seek(&s->g, 0, SEEK_SET);
> >      }
> >
> > +    while(bytestream2_get_bytes_left(&s->g) >= 3 &&
> > bytestream2_peek_be16(&s->g) != JPEG2000_SOC)
> 
> Please follow style of rest of file. space between 'while' and '('

fixed

applied

thanks

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

Democracy is the form of government in which you can choose your dictator
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20130905/8f48cb82/attachment.asc>


More information about the ffmpeg-devel mailing list