Revision 01f4895c libavformat/audio.c

View differences:

libavformat/audio.c
162 162
    int ret;
163 163

  
164 164
    st = s1->streams[0];
165
    s->sample_rate = st->codec.sample_rate;
166
    s->channels = st->codec.channels;
165
    s->sample_rate = st->codec->sample_rate;
166
    s->channels = st->codec->channels;
167 167
    ret = audio_open(s, 1, NULL);
168 168
    if (ret < 0) {
169 169
        return AVERROR_IO;
......
234 234
    }
235 235

  
236 236
    /* take real parameters */
237
    st->codec.codec_type = CODEC_TYPE_AUDIO;
238
    st->codec.codec_id = s->codec_id;
239
    st->codec.sample_rate = s->sample_rate;
240
    st->codec.channels = s->channels;
237
    st->codec->codec_type = CODEC_TYPE_AUDIO;
238
    st->codec->codec_id = s->codec_id;
239
    st->codec->sample_rate = s->sample_rate;
240
    st->codec->channels = s->channels;
241 241

  
242 242
    av_set_pts_info(st, 48, 1, 1000000);  /* 48 bits pts in us */
243 243
    return 0;

Also available in: Unified diff