X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fadxdec.c;h=a271e2afa80a7e8ca08878c5a373ac98ed7d220c;hb=25d9cb462132e71143a2b87e80c2b02a0441fcf3;hp=0315ecb39d6282db1287aa44fd9ffe9e7ee47f75;hpb=15352568132ce93846466379891d613f9c6d0eaa;p=ffmpeg diff --git a/libavformat/adxdec.c b/libavformat/adxdec.c index 0315ecb39d6..a271e2afa80 100644 --- a/libavformat/adxdec.c +++ b/libavformat/adxdec.c @@ -116,7 +116,7 @@ static int adx_read_header(AVFormatContext *s) par->codec_type = AVMEDIA_TYPE_AUDIO; par->codec_id = s->iformat->raw_codec_id; - par->bit_rate = par->sample_rate * par->channels * BLOCK_SIZE * 8LL / BLOCK_SAMPLES; + par->bit_rate = (int64_t)par->sample_rate * par->channels * BLOCK_SIZE * 8LL / BLOCK_SAMPLES; avpriv_set_pts_info(st, 64, BLOCK_SAMPLES, par->sample_rate);