1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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
This commit is contained in:
Baptiste Coudurier 2008-02-13 10:58:16 +00:00
parent fffa99ddd0
commit d435e520d8

View File

@ -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;