]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/ac3_parser.c
Cosmetics: Reindent after last commit.
[ffmpeg] / libavcodec / ac3_parser.c
index 131e180360ade37fa029faa1530d8e1bf2ee12b5..678f08d2d754614b69a57aea196ed3c58db28ba3 100644 (file)
@@ -140,8 +140,8 @@ int avpriv_ac3_parse_header2(GetBitContext *gbc, AC3HeaderInfo **phdr)
         hdr->channel_mode = get_bits(gbc, 3);
         hdr->lfe_on = get_bits1(gbc);
 
-        hdr->bit_rate = (uint32_t)(8.0 * hdr->frame_size * hdr->sample_rate /
-                        (hdr->num_blocks * 256.0));
+        hdr->bit_rate = 8LL * hdr->frame_size * hdr->sample_rate /
+                        (hdr->num_blocks * 256);
         hdr->channels = ff_ac3_channels_tab[hdr->channel_mode] + hdr->lfe_on;
     }
     hdr->channel_layout = avpriv_ac3_channel_layout_tab[hdr->channel_mode];