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; tc->data_end += curpos;
return 0; return 0;
} }
default: default: {
ret = avio_skip(pb, size); int64_t ret64 = avio_skip(pb, size);
if (ret < 0) if (ret64 < 0)
return ret; return ret64;
}
} }
if (type == TAK_METADATA_STREAMINFO) { if (type == TAK_METADATA_STREAMINFO) {