aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mov.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-05 12:46:59 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-04-05 12:46:59 +0000
commit612b5cbb24b1e076ff3efde1242d056429f39f51 (patch)
tree12dba4c6aacfce7393e8cf0764b70544dda8c3ef /libavformat/mov.c
parent4764fdc987b696adeab569012bb71414410cb9b3 (diff)
downloadffmpeg-612b5cbb24b1e076ff3efde1242d056429f39f51.tar.gz
better error message
Originally committed as revision 12756 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r--libavformat/mov.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c
index 3289334deb..d8f84bfdb0 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1709,10 +1709,12 @@ static int mov_read_header(AVFormatContext *s, AVFormatParameters *ap)
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));