1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-09-16 08:36:51 +02:00

avformat/takdec: Don't truncate return value

This is unlikely to matter for real files.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
Andreas Rheinhardt
2025-07-11 23:17:17 +02:00
parent 057afba13d
commit 8872c0c39d

View File

@@ -141,10 +141,11 @@ static int tak_read_header(AVFormatContext *s)
tc->data_end += curpos;
return 0;
}
default:
ret = avio_skip(pb, size);
if (ret < 0)
return ret;
default: {
int64_t ret64 = avio_skip(pb, size);
if (ret64 < 0)
return ret64;
}
}
if (type == TAK_METADATA_STREAMINFO) {