summaryrefslogtreecommitdiff
path: root/libavformat/dauddec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/dauddec.c')
-rw-r--r--libavformat/dauddec.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/libavformat/dauddec.c b/libavformat/dauddec.c
index f6e7491985..69196b0a1a 100644
--- a/libavformat/dauddec.c
+++ b/libavformat/dauddec.c
@@ -26,15 +26,15 @@ static int daud_header(AVFormatContext *s) {
AVStream *st = avformat_new_stream(s, NULL);
if (!st)
return AVERROR(ENOMEM);
- st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
- st->codec->codec_id = AV_CODEC_ID_PCM_S24DAUD;
- st->codec->codec_tag = MKTAG('d', 'a', 'u', 'd');
- st->codec->channels = 6;
- st->codec->channel_layout = AV_CH_LAYOUT_5POINT1;
- st->codec->sample_rate = 96000;
- st->codec->bit_rate = 3 * 6 * 96000 * 8;
- st->codec->block_align = 3 * 6;
- st->codec->bits_per_coded_sample = 24;
+ st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
+ st->codecpar->codec_id = AV_CODEC_ID_PCM_S24DAUD;
+ st->codecpar->codec_tag = MKTAG('d', 'a', 'u', 'd');
+ st->codecpar->channels = 6;
+ st->codecpar->channel_layout = AV_CH_LAYOUT_5POINT1;
+ st->codecpar->sample_rate = 96000;
+ st->codecpar->bit_rate = 3 * 6 * 96000 * 8;
+ st->codecpar->block_align = 3 * 6;
+ st->codecpar->bits_per_coded_sample = 24;
return 0;
}