]> git.sesse.net Git - ffmpeg/blobdiff - libavformat/apc.c
#include just the required stdint.h instead of libavutil/common.h.
[ffmpeg] / libavformat / apc.c
index 20de1c7e589534b70d60599e4dfe890bc7c4a110..14701d92296150575d8197ed785ce2a51e9d6121 100644 (file)
@@ -62,8 +62,8 @@ static int apc_read_header(AVFormatContext *s, AVFormatParameters *ap)
     if (get_le32(pb))
         st->codec->channels = 2;
 
-    st->codec->bits_per_sample = 4;
-    st->codec->bit_rate = st->codec->bits_per_sample * st->codec->channels
+    st->codec->bits_per_coded_sample = 4;
+    st->codec->bit_rate = st->codec->bits_per_coded_sample * st->codec->channels
                           * st->codec->sample_rate;
     st->codec->block_align = 1;