# HG changeset patch # User bcoudurier # Date 1202900028 0 # Node ID 2cf7e37830918ac883f43e0daa05f7d68eb4cfdc # Parent 62181fbfc128ac3f1f8177c8750e69a6deebcc31 remove now useless code diff -r 62181fbfc128 -r 2cf7e3783091 mov.c --- a/mov.c Wed Feb 13 10:52:23 2008 +0000 +++ b/mov.c Wed Feb 13 10:53:48 2008 +0000 @@ -75,11 +75,6 @@ int64_t size; /* total size (excluding the size and type fields) */ } MOV_atom_t; -typedef struct { - offset_t offset; - int64_t size; -} MOV_mdat_t; - struct MOVParseTableEntry; typedef struct MOVStreamContext { @@ -118,8 +113,6 @@ 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 */ AVPaletteControl palette_control; - MOV_mdat_t *mdat_list; - int mdat_count; DVDemuxContext *dv_demux; AVFormatContext *dv_fctx; int isom; /* 1 if file is ISO Media (mp4/3gp) */ @@ -317,10 +310,6 @@ { if(atom.size == 0) /* wrong one (MP4) */ return 0; - c->mdat_list = av_realloc(c->mdat_list, (c->mdat_count + 1) * sizeof(*c->mdat_list)); - c->mdat_list[c->mdat_count].offset = atom.offset; - c->mdat_list[c->mdat_count].size = atom.size; - c->mdat_count++; c->found_mdat=1; if(c->found_moov) return 1; /* found both, just go */ @@ -1498,7 +1487,6 @@ av_freep(&sc->keyframes); av_freep(&sc->stts_data); } - av_freep(&mov->mdat_list); return 0; }