summaryrefslogtreecommitdiff
path: root/libavformat/wvdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/wvdec.c')
-rw-r--r--libavformat/wvdec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/wvdec.c b/libavformat/wvdec.c
index e9a2a6227e..c78bac1ff9 100644
--- a/libavformat/wvdec.c
+++ b/libavformat/wvdec.c
@@ -227,12 +227,12 @@ static int wv_read_header(AVFormatContext *s)
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_WAVPACK;
- st->codec->channels = wc->chan;
- st->codec->channel_layout = wc->chmask;
- st->codec->sample_rate = wc->rate;
- st->codec->bits_per_coded_sample = wc->bpp;
+ st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
+ st->codecpar->codec_id = AV_CODEC_ID_WAVPACK;
+ st->codecpar->channels = wc->chan;
+ st->codecpar->channel_layout = wc->chmask;
+ st->codecpar->sample_rate = wc->rate;
+ st->codecpar->bits_per_coded_sample = wc->bpp;
avpriv_set_pts_info(st, 64, 1, wc->rate);
st->start_time = 0;
st->duration = wc->header.total_samples;