X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavformat%2Fadxdec.c;h=a271e2afa80a7e8ca08878c5a373ac98ed7d220c;hb=91ed4e71967f19824237de4c374f038b543c7555;hp=0315ecb39d6282db1287aa44fd9ffe9e7ee47f75;hpb=7e9474ca47fd4d267bdafcc8162fded67f6410e5;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);