[FFmpeg-cvslog] Skip Exif data when auto-detecting jpeg images.

Carl Eugen Hoyos cehoyos at ag.or.at
Fri Jan 9 11:07:06 CET 2015


Reimar Döffinger <Reimar.Doeffinger <at> gmx.de> writes:

> > +    if (AV_RB16(b) == 0xFFE1 && AV_RB32(b + 4) == AV_RB32("Exif")) {
> 
> Are we allowed to just assume that buf_size is >= 8 
> (or that there is at least 8 bytes 0 padding)?

32 zeros are required by our API afaict.

I cannot comment on the undefined behaviour.

Carl Eugen



More information about the ffmpeg-cvslog mailing list