mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
libavformat/mov: Elimitate double reading of COVR metadata if MOV_EXPORT_ALL_METADATA is enabled
Problem: ffmpeg tries to read COVR atom data twice if MOV_EXPORT_ALL_METADATA is enabled. If COVR atom is the last in the stream, a parsing of such file fails. Solution: just return immediatelly after mov_read_covr Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
09cd22860f
commit
8b96f31817
@ -295,8 +295,8 @@ static int mov_read_udta_string(MOVContext *c, AVIOContext *pb, MOVAtom atom)
|
||||
int ret = mov_read_covr(c, pb, data_type, str_size);
|
||||
if (ret < 0) {
|
||||
av_log(c->fc, AV_LOG_ERROR, "Error parsing cover art.\n");
|
||||
return ret;
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
} else return 0;
|
||||
} else if (atom.size > 4 && key && !c->itunes_metadata) {
|
||||
|
Loading…
Reference in New Issue
Block a user