Revision 72415b2a libavformat/oggenc.c

View differences:

libavformat/oggenc.c
178 178
    int i, j;
179 179
    for (i = 0; i < s->nb_streams; i++) {
180 180
        AVStream *st = s->streams[i];
181
        if (st->codec->codec_type == CODEC_TYPE_AUDIO)
181
        if (st->codec->codec_type == AVMEDIA_TYPE_AUDIO)
182 182
            av_set_pts_info(st, 64, 1, st->codec->sample_rate);
183
        else if (st->codec->codec_type == CODEC_TYPE_VIDEO)
183
        else if (st->codec->codec_type == AVMEDIA_TYPE_VIDEO)
184 184
            av_set_pts_info(st, 64, st->codec->time_base.num, st->codec->time_base.den);
185 185
        if (st->codec->codec_id != CODEC_ID_VORBIS &&
186 186
            st->codec->codec_id != CODEC_ID_THEORA &&

Also available in: Unified diff