[FFmpeg-cvslog] r12756 - trunk/libavformat/mov.c
bcoudurier
subversion
Sat Apr 5 14:46:59 CEST 2008
Author: bcoudurier
Date: Sat Apr 5 14:46:59 2008
New Revision: 12756
Log:
better error message
Modified:
trunk/libavformat/mov.c
Modified: trunk/libavformat/mov.c
==============================================================================
--- trunk/libavformat/mov.c (original)
+++ trunk/libavformat/mov.c Sat Apr 5 14:46:59 2008
@@ -1709,10 +1709,12 @@ static int mov_read_header(AVFormatConte
atom.size = INT64_MAX;
/* check MOV header */
- err = mov_read_default(mov, pb, atom);
- if (err<0 || (!mov->found_moov && !mov->found_mdat)) {
- av_log(s, AV_LOG_ERROR, "mov: header not found !!! (err:%d, moov:%d, mdat:%d) pos:%"PRId64"\n",
- err, mov->found_moov, mov->found_mdat, url_ftell(pb));
+ if ((err = mov_read_default(mov, pb, atom)) < 0) {
+ av_log(s, AV_LOG_ERROR, "error reading header: %d\n", err);
+ return err;
+ }
+ if (!mov->found_moov) {
+ av_log(s, AV_LOG_ERROR, "moov atom not found\n");
return -1;
}
dprintf(mov->fc, "on_parse_exit_offset=%d\n", (int) url_ftell(pb));
More information about the ffmpeg-cvslog
mailing list