Revision 72415b2a libavformat/westwood.c

View differences:

libavformat/westwood.c
148 148
    if (!st)
149 149
        return AVERROR(ENOMEM);
150 150
    av_set_pts_info(st, 33, 1, wsaud->audio_samplerate);
151
    st->codec->codec_type = CODEC_TYPE_AUDIO;
151
    st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
152 152
    st->codec->codec_id = wsaud->audio_type;
153 153
    st->codec->codec_tag = 0;  /* no tag */
154 154
    st->codec->channels = wsaud->audio_channels;
......
226 226
        return AVERROR(ENOMEM);
227 227
    av_set_pts_info(st, 33, 1, VQA_FRAMERATE);
228 228
    wsvqa->video_stream_index = st->index;
229
    st->codec->codec_type = CODEC_TYPE_VIDEO;
229
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
230 230
    st->codec->codec_id = CODEC_ID_WS_VQA;
231 231
    st->codec->codec_tag = 0;  /* no fourcc */
232 232

  
......
251 251
        if (!st)
252 252
            return AVERROR(ENOMEM);
253 253
        av_set_pts_info(st, 33, 1, VQA_FRAMERATE);
254
        st->codec->codec_type = CODEC_TYPE_AUDIO;
254
        st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
255 255
        if (AV_RL16(&header[0]) == 1)
256 256
            st->codec->codec_id = CODEC_ID_WESTWOOD_SND1;
257 257
        else

Also available in: Unified diff