Commit 6ee40dcb authored by Marton Balint's avatar Marton Balint

avformat/mxfdec: do not ignore bad size errors

The return value was unintentionally lost after
00a2652d.
Signed-off-by: 's avatarMarton Balint <cus@passwd.hu>
parent 493438fa
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment