]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/smacker.c
avformat/utils: Fix division by 0
[ffmpeg] / libavformat / smacker.c
index 284cdc196ad2edf211ec4ed2d521c4233d61edbe..5dcf4adafe8b8a7ba6f0d3b4c6a2e26963a07416 100644 (file)
@@ -321,7 +321,7 @@ static int smacker_read_packet(AVFormatContext *s, AVPacket *pkt)
                 int err;
 
                 size = avio_rl32(s->pb) - 4;
-                if (!size || size + 4L > frame_size) {
+                if (!size || size + 4LL > frame_size) {
                     av_log(s, AV_LOG_ERROR, "Invalid audio part size\n");
                     return AVERROR_INVALIDDATA;
                 }