Revision 66e5b1df libavformat/mxfdec.c

View differences:

libavformat/mxfdec.c
179 179
static int mxf_read_sync(AVIOContext *pb, const uint8_t *key, unsigned size)
180 180
{
181 181
    int i, b;
182
    for (i = 0; i < size && !url_feof(pb); i++) {
182
    for (i = 0; i < size && !pb->eof_reached; i++) {
183 183
        b = avio_r8(pb);
184 184
        if (b == key[0])
185 185
            i = 0;
......
305 305
{
306 306
    KLVPacket klv;
307 307

  
308
    while (!url_feof(s->pb)) {
308
    while (!s->pb->eof_reached) {
309 309
        if (klv_read_packet(&klv, s->pb) < 0)
310 310
            return -1;
311 311
        PRINT_KEY(s, "read packet", klv.key);
......
914 914
    }
915 915
    avio_seek(s->pb, -14, SEEK_CUR);
916 916
    mxf->fc = s;
917
    while (!url_feof(s->pb)) {
917
    while (!s->pb->eof_reached) {
918 918
        const MXFMetadataReadTableEntry *metadata;
919 919

  
920 920
        if (klv_read_packet(&klv, s->pb) < 0)

Also available in: Unified diff