You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-06-30 22:24:04 +02:00
avcodec/exif: do not follow 0 offsets
Fixes exif decoding failure of 1295328_300.jpg Reviewed-by; Thilo Borgmann <thilo.borgmann@mail.de> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -78,6 +78,11 @@ static int exif_decode_tag(AVCodecContext *avctx, GetByteContext *gbytes, int le
|
|||||||
|
|
||||||
ff_tread_tag(gbytes, le, &id, &type, &count, &cur_pos);
|
ff_tread_tag(gbytes, le, &id, &type, &count, &cur_pos);
|
||||||
|
|
||||||
|
if (!bytestream2_tell(gbytes)) {
|
||||||
|
bytestream2_seek(gbytes, cur_pos, SEEK_SET);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
// read count values and add it metadata
|
// read count values and add it metadata
|
||||||
// store metadata or proceed with next IFD
|
// store metadata or proceed with next IFD
|
||||||
ret = ff_tis_ifd(id);
|
ret = ff_tis_ifd(id);
|
||||||
|
Reference in New Issue
Block a user