Revision b7889fce

View differences:

libavformat/mxf.c
336 336
    KLVPacket klv;
337 337

  
338 338
    while (!url_feof(&s->pb)) {
339
        if (klv_read_packet(&klv, &s->pb) < 0) {
340
            av_log(s, AV_LOG_ERROR, "error reading KLV packet\n");
339
        if (klv_read_packet(&klv, &s->pb) < 0)
341 340
            return -1;
342
        }
343 341
#ifdef DEBUG
344 342
        PRINT_KEY(s, "read packet", klv.key);
345 343
#endif
......
944 942
    while (!url_feof(&s->pb)) {
945 943
        const MXFMetadataReadTableEntry *metadata;
946 944

  
947
        if (klv_read_packet(&klv, &s->pb) < 0) {
948
            av_log(s, AV_LOG_ERROR, "error reading KLV packet\n");
945
        if (klv_read_packet(&klv, &s->pb) < 0)
949 946
            return -1;
950
        }
951 947
#ifdef DEBUG
952 948
        PRINT_KEY(s, "read header", klv.key);
953 949
#endif

Also available in: Unified diff