Revision b7effd4e libavformat/rtpdec_qt.c

View differences:

libavformat/rtpdec_qt.c
104 104
        data_len = get_bits(&gb, 16);
105 105

  
106 106
        url_fseek(&pb, pos + 4, SEEK_SET);
107
        tag = get_le32(&pb);
107
        tag = avio_rl32(&pb);
108 108
        if ((st->codec->codec_type == AVMEDIA_TYPE_VIDEO &&
109 109
                 tag != MKTAG('v','i','d','e')) ||
110 110
            (st->codec->codec_type == AVMEDIA_TYPE_AUDIO &&
111 111
                 tag != MKTAG('s','o','u','n')))
112 112
            return AVERROR_INVALIDDATA;
113
        av_set_pts_info(st, 32, 1, get_be32(&pb));
113
        av_set_pts_info(st, 32, 1, avio_rb32(&pb));
114 114

  
115 115
        if (pos + data_len > len)
116 116
            return AVERROR_INVALIDDATA;
117 117
        /* TLVs */
118 118
        while (url_ftell(&pb) + 4 < pos + data_len) {
119
            int tlv_len = get_be16(&pb);
120
            tag = get_le16(&pb);
119
            int tlv_len = avio_rb16(&pb);
120
            tag = avio_rl16(&pb);
121 121
            if (url_ftell(&pb) + tlv_len > pos + data_len)
122 122
                return AVERROR_INVALIDDATA;
123 123

  

Also available in: Unified diff