summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2019-05-14 13:04:51 +0200
committerKarthick J <kjeyapal@akamai.com>2019-05-17 09:32:21 +0530
commit359d4e10a07d71e0706ce9550e68655fdfa30d64 (patch)
treec4bd91915f0404cdc6d375434f2e009f7427bfdc /libavformat
parent81acc9adbfef9a4867862033b769b5d198cea679 (diff)
avformat/dashenc: use 64bit for handling the return of avio_tell()
The return code is 64bit, so this is more correct, especially in case it actually would be a file of such large size Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/dashenc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c
index b88d4b3496..94b198ceb8 100644
--- a/libavformat/dashenc.c
+++ b/libavformat/dashenc.c
@@ -1611,11 +1611,11 @@ static int dash_flush(AVFormatContext *s, int final, int stream)
for (i = 0; i < s->nb_streams; i++) {
OutputStream *os = &c->streams[i];
if (os->ctx && os->ctx_inited) {
- int file_size = avio_tell(os->ctx->pb);
+ int64_t file_size = avio_tell(os->ctx->pb);
av_write_trailer(os->ctx);
if (c->global_sidx) {
int j, start_index, start_number;
- int sidx_size = avio_tell(os->ctx->pb) - file_size;
+ int64_t sidx_size = avio_tell(os->ctx->pb) - file_size;
get_start_index_number(os, c, &start_index, &start_number);
if (start_index >= os->nb_segments ||
os->segment_type != SEGMENT_TYPE_MP4)