|
|
@ -115,7 +115,6 @@ typedef struct MOVContext { |
|
|
|
int64_t duration; /* duration of the longest track */ |
|
|
|
int64_t duration; /* duration of the longest track */ |
|
|
|
int found_moov; /* when both 'moov' and 'mdat' sections has been found */ |
|
|
|
int found_moov; /* when both 'moov' and 'mdat' sections has been found */ |
|
|
|
int found_mdat; /* we suppose we have enough data to read the file */ |
|
|
|
int found_mdat; /* we suppose we have enough data to read the file */ |
|
|
|
int64_t mdat_offset; |
|
|
|
|
|
|
|
AVPaletteControl palette_control; |
|
|
|
AVPaletteControl palette_control; |
|
|
|
MOV_mdat_t *mdat_list; |
|
|
|
MOV_mdat_t *mdat_list; |
|
|
|
int mdat_count; |
|
|
|
int mdat_count; |
|
|
@ -319,7 +318,6 @@ static int mov_read_mdat(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) |
|
|
|
c->mdat_list[c->mdat_count].size = atom.size; |
|
|
|
c->mdat_list[c->mdat_count].size = atom.size; |
|
|
|
c->mdat_count++; |
|
|
|
c->mdat_count++; |
|
|
|
c->found_mdat=1; |
|
|
|
c->found_mdat=1; |
|
|
|
c->mdat_offset = atom.offset; |
|
|
|
|
|
|
|
if(c->found_moov) |
|
|
|
if(c->found_moov) |
|
|
|
return 1; /* found both, just go */ |
|
|
|
return 1; /* found both, just go */ |
|
|
|
url_fskip(pb, atom.size); |
|
|
|
url_fskip(pb, atom.size); |
|
|
|