Revision 4d9c044d libavformat/rtpdec_qt.c

View differences:

libavformat/rtpdec_qt.c
104 104

  
105 105
        url_fseek(&pb, pos + 4, SEEK_SET);
106 106
        tag = get_le32(&pb);
107
        if ((st->codec->codec_type == CODEC_TYPE_VIDEO &&
107
        if ((st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
108 108
                 tag != MKTAG('v','i','d','e')) ||
109
            (st->codec->codec_type == CODEC_TYPE_AUDIO &&
109
            (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
110 110
                 tag != MKTAG('s','o','u','n')))
111 111
            return AVERROR_INVALIDDATA;
112 112
        av_set_pts_info(st, 32, 1, get_be32(&pb));
......
248 248
    .parse_packet     = qt_rtp_parse_packet, \
249 249
};
250 250

  
251
RTP_QT_HANDLER(qt,        vid, "X-QT",        CODEC_TYPE_VIDEO);
252
RTP_QT_HANDLER(qt,        aud, "X-QT",        CODEC_TYPE_AUDIO);
253
RTP_QT_HANDLER(quicktime, vid, "X-QUICKTIME", CODEC_TYPE_VIDEO);
254
RTP_QT_HANDLER(quicktime, aud, "X-QUICKTIME", CODEC_TYPE_AUDIO);
251
RTP_QT_HANDLER(qt,        vid, "X-QT",        AVMEDIA_TYPE_VIDEO);
252
RTP_QT_HANDLER(qt,        aud, "X-QT",        AVMEDIA_TYPE_AUDIO);
253
RTP_QT_HANDLER(quicktime, vid, "X-QUICKTIME", AVMEDIA_TYPE_VIDEO);
254
RTP_QT_HANDLER(quicktime, aud, "X-QUICKTIME", AVMEDIA_TYPE_AUDIO);

Also available in: Unified diff