summaryrefslogtreecommitdiff
path: root/libavformat/aixdec.c
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/aixdec.c')
-rw-r--r--libavformat/aixdec.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/aixdec.c b/libavformat/aixdec.c
index 83395581a4..5f40d6bdcf 100644
--- a/libavformat/aixdec.c
+++ b/libavformat/aixdec.c
@@ -61,11 +61,11 @@ static int aix_read_header(AVFormatContext *s)
if (!st)
return AVERROR(ENOMEM);
- st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
- st->codec->codec_id = AV_CODEC_ID_ADPCM_ADX;
- st->codec->sample_rate = avio_rb32(s->pb);
- st->codec->channels = avio_r8(s->pb);
- avpriv_set_pts_info(st, 64, 1, st->codec->sample_rate);
+ st->codecpar->codec_type = AVMEDIA_TYPE_AUDIO;
+ st->codecpar->codec_id = AV_CODEC_ID_ADPCM_ADX;
+ st->codecpar->sample_rate = avio_rb32(s->pb);
+ st->codecpar->channels = avio_r8(s->pb);
+ avpriv_set_pts_info(st, 64, 1, st->codecpar->sample_rate);
avio_skip(s->pb, 3);
}
@@ -77,7 +77,7 @@ static int aix_read_header(AVFormatContext *s)
if (size <= 8)
return AVERROR_INVALIDDATA;
avio_skip(s->pb, 8);
- ff_get_extradata(s->streams[i]->codec, s->pb, size - 8);
+ ff_get_extradata(s->streams[i]->codecpar, s->pb, size - 8);
}
return 0;