AVStream *st = av_new_stream(s, 0);
if (!st)
return AVERROR(ENOMEM);
- st->codec->codec_type = CODEC_TYPE_AUDIO;
+ st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
st->codec->codec_id = CODEC_ID_PCM_S24DAUD;
st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');
st->codec->channels = 6;
st->codec->sample_rate = 96000;
st->codec->bit_rate = 3 * 6 * 96000 * 8;
st->codec->block_align = 3 * 6;
- st->codec->bits_per_sample = 24;
+ st->codec->bits_per_coded_sample = 24;
return 0;
}
};
#endif
-#ifdef CONFIG_DAUD_MUXER
+#if CONFIG_DAUD_MUXER
AVOutputFormat daud_muxer =
{
"daud",