Revision b7effd4e libavformat/msnwc_tcp.c

View differences:

libavformat/msnwc_tcp.c
88 88

  
89 89
    /* Some files start with "connected\r\n\r\n".
90 90
     * So skip until we find the first byte of struct size */
91
    while(get_byte(pb) != HEADER_SIZE && !url_feof(pb));
91
    while(avio_r8(pb) != HEADER_SIZE && !url_feof(pb));
92 92

  
93 93
    if(url_feof(pb)) {
94 94
        av_log(ctx, AV_LOG_ERROR, "Could not find valid start.");
......
107 107
    url_fskip(pb, 1); /* one byte has been read ahead */
108 108
    url_fskip(pb, 2);
109 109
    url_fskip(pb, 2);
110
    keyframe = get_le16(pb);
111
    size = get_le32(pb);
110
    keyframe = avio_rl16(pb);
111
    size = avio_rl32(pb);
112 112
    url_fskip(pb, 4);
113 113
    url_fskip(pb, 4);
114
    timestamp = get_le32(pb);
114
    timestamp = avio_rl32(pb);
115 115

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

Also available in: Unified diff