changeset 2117:32db8e6579cb libavformat

do not print error message when klv_read_packet fails
author bcoudurier
date Sun, 03 Jun 2007 17:15:39 +0000
parents a56cef4f6091
children f311c244c2b6
files mxf.c
diffstat 1 files changed, 2 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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