Revision 72415b2a libavformat/idroq.c

View differences:

libavformat/idroq.c
89 89
        return AVERROR(ENOMEM);
90 90
    av_set_pts_info(st, 63, 1, framerate);
91 91
    roq->video_stream_index = st->index;
92
    st->codec->codec_type = CODEC_TYPE_VIDEO;
92
    st->codec->codec_type = AVMEDIA_TYPE_VIDEO;
93 93
    st->codec->codec_id = CODEC_ID_ROQ;
94 94
    st->codec->codec_tag = 0;  /* no fourcc */
95 95

  
......
171 171
                    return AVERROR(ENOMEM);
172 172
                av_set_pts_info(st, 32, 1, RoQ_AUDIO_SAMPLE_RATE);
173 173
                roq->audio_stream_index = st->index;
174
                st->codec->codec_type = CODEC_TYPE_AUDIO;
174
                st->codec->codec_type = AVMEDIA_TYPE_AUDIO;
175 175
                st->codec->codec_id = CODEC_ID_ROQ_DPCM;
176 176
                st->codec->codec_tag = 0;  /* no tag */
177 177
                st->codec->channels = roq->audio_channels = chunk_type == RoQ_SOUND_STEREO ? 2 : 1;

Also available in: Unified diff