# HG changeset patch # User michael # Date 1090098063 0 # Node ID 4070a7d58d2cc01d1eb10a37cfd261bff7793aa0 # Parent 3e85b3d73cda209f6755d767b0afed769b4e8341 mov_read_elst fix, based upon a patch by (Sebastien Bechet ) diff -r 3e85b3d73cda -r 4070a7d58d2c mov.c --- a/mov.c Sat Jul 17 16:35:47 2004 +0000 +++ b/mov.c Sat Jul 17 21:01:03 2004 +0000 @@ -1431,11 +1431,18 @@ /* edit list atom */ static int mov_read_elst(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { + int i, edit_count; print_atom("elst", atom); get_byte(pb); /* version */ get_byte(pb); get_byte(pb); get_byte(pb); /* flags */ - c->streams[c->fc->nb_streams-1]->edit_count = get_be32(pb); /* entries */ + edit_count= c->streams[c->fc->nb_streams-1]->edit_count = get_be32(pb); /* entries */ + + for(i=0; ifc->nb_streams-1, c->streams[c->fc->nb_streams-1]->edit_count); #endif @@ -1452,7 +1459,7 @@ { MKTAG( 'd', 'p', 'n', 'd' ), mov_read_leaf }, { MKTAG( 'd', 'r', 'e', 'f' ), mov_read_leaf }, { MKTAG( 'e', 'd', 't', 's' ), mov_read_default }, -//{ MKTAG( 'e', 'l', 's', 't' ), mov_read_elst }, //broken, try some movs from http://videos.av7.net/ +{ MKTAG( 'e', 'l', 's', 't' ), mov_read_elst }, { MKTAG( 'f', 'r', 'e', 'e' ), mov_read_leaf }, { MKTAG( 'h', 'd', 'l', 'r' ), mov_read_hdlr }, { MKTAG( 'h', 'i', 'n', 't' ), mov_read_leaf },