diff options
Diffstat (limited to 'libavformat/ircamenc.c')
-rw-r--r-- | libavformat/ircamenc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavformat/ircamenc.c b/libavformat/ircamenc.c index 1a829d4c08..323ecb37ee 100644 --- a/libavformat/ircamenc.c +++ b/libavformat/ircamenc.c @@ -28,7 +28,7 @@ static int ircam_write_header(AVFormatContext *s) { - AVCodecContext *codec = s->streams[0]->codec; + AVCodecParameters *par = s->streams[0]->codecpar; uint32_t tag; if (s->nb_streams != 1) { @@ -36,15 +36,15 @@ static int ircam_write_header(AVFormatContext *s) return AVERROR(EINVAL); } - tag = ff_codec_get_tag(ff_codec_ircam_le_tags, codec->codec_id); + tag = ff_codec_get_tag(ff_codec_ircam_le_tags, par->codec_id); if (!tag) { av_log(s, AV_LOG_ERROR, "unsupported codec\n"); return AVERROR(EINVAL); } avio_wl32(s->pb, 0x0001A364); - avio_wl32(s->pb, av_q2intfloat((AVRational){codec->sample_rate, 1})); - avio_wl32(s->pb, codec->channels); + avio_wl32(s->pb, av_q2intfloat((AVRational){par->sample_rate, 1})); + avio_wl32(s->pb, par->channels); avio_wl32(s->pb, tag); ffio_fill(s->pb, 0, 1008); return 0; |