On Thu, Nov 25, 2021 at 02:30:33PM -0500, Alex Xu (Hello71) wrote: > The check for m->size >= 0xF000 is intended to avoid skipping too much > garbage data between JPEG frames in test_roman (thus missing next SOI), > but it erroneously also skips valid markers between SOI and SOS. Instead > of this, we should simply skip parsing markers other than SOI after EOI. > That way, we will not accidentally skip over SOI due to some garbage > between frames. There is still a small risk of encountering FFD8 in the > garbage data, but the chance of this is fairly low. > > Fixes: https://trac.ffmpeg.org/ticket/8967 > --- > libavcodec/mjpeg_parser.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-)
will apply thx [...] -- Michael GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB Dictatorship naturally arises out of democracy, and the most aggravated form of tyranny and slavery out of the most extreme liberty. -- Plato
signature.asc
Description: PGP signature
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-devel To unsubscribe, visit link above, or email ffmpeg-devel-requ...@ffmpeg.org with subject "unsubscribe".