# HG changeset patch # User bcoudurier # Date 1180890939 0 # Node ID 32db8e6579cb08574990a6a753be271f5d85b099 # Parent a56cef4f6091d01fccb6f01544fc95b2519d26cf do not print error message when klv_read_packet fails diff -r a56cef4f6091 -r 32db8e6579cb mxf.c --- a/mxf.c Sun Jun 03 17:10:55 2007 +0000 +++ b/mxf.c Sun Jun 03 17:15:39 2007 +0000 @@ -336,10 +336,8 @@ KLVPacket klv; while (!url_feof(&s->pb)) { - if (klv_read_packet(&klv, &s->pb) < 0) { - av_log(s, AV_LOG_ERROR, "error reading KLV packet\n"); + if (klv_read_packet(&klv, &s->pb) < 0) return -1; - } #ifdef DEBUG PRINT_KEY(s, "read packet", klv.key); #endif @@ -944,10 +942,8 @@ while (!url_feof(&s->pb)) { const MXFMetadataReadTableEntry *metadata; - if (klv_read_packet(&klv, &s->pb) < 0) { - av_log(s, AV_LOG_ERROR, "error reading KLV packet\n"); + if (klv_read_packet(&klv, &s->pb) < 0) return -1; - } #ifdef DEBUG PRINT_KEY(s, "read header", klv.key); #endif