Revision 01f4895c libavformat/au.c

View differences:

libavformat/au.c
63 63
    s->priv_data = NULL;
64 64

  
65 65
    /* format header */
66
    if (put_au_header(pb, &s->streams[0]->codec) < 0) {
66
    if (put_au_header(pb, s->streams[0]->codec) < 0) {
67 67
        return -1;
68 68
    }
69 69

  
......
143 143
    st = av_new_stream(s, 0);
144 144
    if (!st)
145 145
        return -1;
146
    st->codec.codec_type = CODEC_TYPE_AUDIO;
147
    st->codec.codec_tag = id;
148
    st->codec.codec_id = codec;
149
    st->codec.channels = channels;
150
    st->codec.sample_rate = rate;
146
    st->codec->codec_type = CODEC_TYPE_AUDIO;
147
    st->codec->codec_tag = id;
148
    st->codec->codec_id = codec;
149
    st->codec->channels = channels;
150
    st->codec->sample_rate = rate;
151 151
    av_set_pts_info(st, 64, 1, rate);
152 152
    return 0;
153 153
}

Also available in: Unified diff