diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-13 10:58:16 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2008-02-13 10:58:16 +0000 |
commit | d435e520d813c5f3e0c06359e145432a3325d880 (patch) | |
tree | 07df8258b3d11bdf6e0ee1da40079d1356f579d7 /libavformat/mov.c | |
parent | fffa99ddd07bd90a9e0e039b5b7a578d6d81819b (diff) | |
download | ffmpeg-d435e520d813c5f3e0c06359e145432a3325d880.tar.gz |
warn use if edit list is not starting at 0, a/v desync might occur
Originally committed as revision 11923 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/mov.c')
-rw-r--r-- | libavformat/mov.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 12bfec14d5..0869dad282 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -1230,9 +1230,13 @@ static int mov_read_elst(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) edit_count= sc->edit_count = get_be32(pb); /* entries */ for(i=0; i<edit_count; i++){ + int time; get_be32(pb); /* Track duration */ - get_be32(pb); /* Media time */ + time = get_be32(pb); /* Media time */ get_be32(pb); /* Media rate */ + if (time != 0) + av_log(c->fc, AV_LOG_WARNING, "edit list not starting at 0, " + "a/v desync might occur, patch welcome\n"); } dprintf(c->fc, "track[%i].edit_count = %i\n", c->fc->nb_streams-1, sc->edit_count); return 0; |