diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-06-03 17:15:39 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2007-06-03 17:15:39 +0000 |
commit | b7889fce2f41abce64ab0c274bfa096f7668c32b (patch) | |
tree | d981b22fc875bf220407468325951446c1ca5431 /libavformat/mxf.c | |
parent | cabe2527ef37c6d5db7a63ebfa3a35294b9c099a (diff) | |
download | ffmpeg-b7889fce2f41abce64ab0c274bfa096f7668c32b.tar.gz |
do not print error message when klv_read_packet fails
Originally committed as revision 9186 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mxf.c')
-rw-r--r-- | libavformat/mxf.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/libavformat/mxf.c b/libavformat/mxf.c index 7c24c15282..143cef57cc 100644 --- a/libavformat/mxf.c +++ b/libavformat/mxf.c @@ -336,10 +336,8 @@ static int mxf_read_packet(AVFormatContext *s, AVPacket *pkt) 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 @@ static int mxf_read_header(AVFormatContext *s, AVFormatParameters *ap) 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 |