diff --git a/libavformat/ape.c b/libavformat/ape.c index db00b8d84d..aad15e9853 100644 --- a/libavformat/ape.c +++ b/libavformat/ape.c @@ -317,7 +317,7 @@ static int ape_read_header(AVFormatContext * s) final_size -= final_size & 3; } if (file_size <= 0 || final_size <= 0) - final_size = ape->finalframeblocks * 8; + final_size = ape->finalframeblocks * 8LL; ape->frames[ape->totalframes - 1].size = final_size; for (i = 0; i < ape->totalframes; i++) {