Revision e63a3628 libavformat/ncdec.c

View differences:

libavformat/ncdec.c
68 68
    while (state != NC_VIDEO_FLAG) {
69 69
        if (url_feof(s->pb))
70 70
            return AVERROR(EIO);
71
        state = (state<<8) + get_byte(s->pb);
71
        state = (state<<8) + avio_r8(s->pb);
72 72
    }
73 73

  
74
    get_byte(s->pb);
75
    size = get_le16(s->pb);
74
    avio_r8(s->pb);
75
    size = avio_rl16(s->pb);
76 76
    url_fskip(s->pb, 9);
77 77

  
78 78
    if (size == 0) {

Also available in: Unified diff