Revision 66e5b1df libavformat/wc3movie.c

View differences:

libavformat/wc3movie.c
157 157
        fourcc_tag = avio_rl32(pb);
158 158
        /* chunk sizes are 16-bit aligned */
159 159
        size = (avio_rb32(pb) + 1) & (~1);
160
        if (url_feof(pb))
160
        if (pb->eof_reached)
161 161
            return AVERROR(EIO);
162 162

  
163 163
    } while (fourcc_tag != BRCH_TAG);
......
208 208
        fourcc_tag = avio_rl32(pb);
209 209
        /* chunk sizes are 16-bit aligned */
210 210
        size = (avio_rb32(pb) + 1) & (~1);
211
        if (url_feof(pb))
211
        if (pb->eof_reached)
212 212
            return AVERROR(EIO);
213 213

  
214 214
        switch (fourcc_tag) {

Also available in: Unified diff