]> git.sesse.net Git - ffmpeg/commitdiff
avformat/ivfenc: Don't use size_t for size of file
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Thu, 27 Feb 2020 05:33:50 +0000 (06:33 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 28 Feb 2020 18:40:05 +0000 (19:40 +0100)
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/ivfenc.c

index eb70421c44a46b93cd6074e7051289f76d562ccd..45e5b238dcbb896d28093e9a2e3c20953a5f8d27 100644 (file)
@@ -80,7 +80,7 @@ static int ivf_write_trailer(AVFormatContext *s)
     IVFEncContext *ctx = s->priv_data;
 
     if ((pb->seekable & AVIO_SEEKABLE_NORMAL) && ctx->frame_cnt > 1) {
-        size_t end = avio_tell(pb);
+        int64_t end = avio_tell(pb);
 
         avio_seek(pb, 24, SEEK_SET);
         // overwrite the "length" field (duration)