Revision e356fc57 libavformat/msnwc_tcp.c

View differences:

libavformat/msnwc_tcp.c
104 104
    uint16_t keyframe;
105 105
    uint32_t size, timestamp;
106 106

  
107
    url_fskip(pb, 1); /* one byte has been read ahead */
108
    url_fskip(pb, 2);
109
    url_fskip(pb, 2);
107
    avio_seek(pb, 1, SEEK_CUR); /* one byte has been read ahead */
108
    avio_seek(pb, 2, SEEK_CUR);
109
    avio_seek(pb, 2, SEEK_CUR);
110 110
    keyframe = avio_rl16(pb);
111 111
    size = avio_rl32(pb);
112
    url_fskip(pb, 4);
113
    url_fskip(pb, 4);
112
    avio_seek(pb, 4, SEEK_CUR);
113
    avio_seek(pb, 4, SEEK_CUR);
114 114
    timestamp = avio_rl32(pb);
115 115

  
116 116
    if(!size || av_get_packet(pb, pkt, size) != size)
117 117
        return -1;
118 118

  
119
    url_fskip(pb, 1); /* Read ahead one byte of struct size like read_header */
119
    avio_seek(pb, 1, SEEK_CUR); /* Read ahead one byte of struct size like read_header */
120 120

  
121 121
    pkt->pts = timestamp;
122 122
    pkt->dts = timestamp;

Also available in: Unified diff