mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-04-23 10:20:54 +08:00
avformat/mxfdec: do not ignore bad size errors
The return value was unintentionally lost after00a2652df3. Signed-off-by: Marton Balint <cus@passwd.hu> (cherry picked from commit6ee40dcb64)
This commit is contained in:
@@ -3508,8 +3508,8 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
} else {
|
||||
if ((size = next_ofs - pos) <= 0) {
|
||||
av_log(s, AV_LOG_ERROR, "bad size: %"PRId64"\n", size);
|
||||
ret = AVERROR_INVALIDDATA;
|
||||
goto skip;
|
||||
mxf->current_klv_data = (KLVPacket){{0}};
|
||||
return AVERROR_INVALIDDATA;
|
||||
}
|
||||
// We must not overread, because the next edit unit might be in another KLV
|
||||
if (size > max_data_size)
|
||||
|
||||
Reference in New Issue
Block a user