Mercurial > libavformat.hg
changeset 2102:ea6094e10af8 libavformat
warn the user about the the mdhd problem
(this is of course not a good solution but its better than silently
generating invalid files, we should find a better solution)
author | michael |
---|---|
date | Wed, 30 May 2007 00:08:32 +0000 |
parents | 8c239da52650 |
children | 95139f2053a9 |
files | movenc.c |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/movenc.c Tue May 29 08:19:37 2007 +0000 +++ b/movenc.c Wed May 30 00:08:32 2007 +0000 @@ -845,6 +845,14 @@ (version == 1) ? put_be64(pb, track->trackDuration) : put_be32(pb, track->trackDuration); /* duration */ put_be16(pb, track->language); /* language */ put_be16(pb, 0); /* reserved (quality) */ + + if(version!=0 && track->mode == MODE_MOV){ + av_log(NULL, AV_LOG_ERROR, + "FATAL error, file duration too long for timebase, this file will not be\n" + "playable with quicktime. Choose a differnt timebase or a different\n" + "container format\n"); + } + return 32; }