[FFmpeg-devel] [PATCH]Do not fail for valid PICT files
Carl Eugen Hoyos
cehoyos at ag.or.at
Thu May 21 10:12:10 CEST 2015
Michael Niedermayer <michaelni <at> gmx.at> writes:
> > if ( bytestream2_get_bytes_left(&gbc) >= 552
> > - && !check_header(gbc.buffer ,
> > bytestream2_get_bytes_left(&gbc))
> > - && check_header(gbc.buffer + 512,
> > bytestream2_get_bytes_left(&gbc) - 512)
> > + && ( AV_RB32(&avpkt->data[522]) == 0x001102FF
> > + || AV_RB16(&avpkt->data[522]) == 0x1101)
>
> isnt it enough to remove the first !check_header() ?
Yes, patch merged that only removes the first
call to check_header().
Thank you, Carl Eugen
More information about the ffmpeg-devel
mailing list