Revision 72415b2a libavformat/mm.c

View differences:

libavformat/mm.c
108 108
    st = av_new_stream(s, 0);
109 109
    if (!st)
110 110
        return AVERROR(ENOMEM);
111
    st->codec->codec_type = CODEC_TYPE_VIDEO;
111
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
112 112
    st->codec->codec_id = CODEC_ID_MMVIDEO;
113 113
    st->codec->codec_tag = 0;  /* no fourcc */
114 114
    st->codec->width = width;
......
120 120
        st = av_new_stream(s, 0);
121 121
        if (!st)
122 122
            return AVERROR(ENOMEM);
123
        st->codec->codec_type = CODEC_TYPE_AUDIO;
123
        st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
124 124
        st->codec->codec_tag = 0; /* no fourcc */
125 125
        st->codec->codec_id = CODEC_ID_PCM_U8;
126 126
        st->codec->channels = 1;

Also available in: Unified diff