diff options
author | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-05-12 11:07:46 +0000 |
---|---|---|
committer | Zdenek Kabelac <kabi@informatics.muni.cz> | 2003-05-12 11:07:46 +0000 |
commit | fd6e513ee1dc13174256de8adaeeb2c2691eee95 (patch) | |
tree | 17b1525c0239d34d4986502c44f29eaceff9e9df | |
parent | 5ca1d879bb7a8f03f3e0e6ec8118012908a970bc (diff) | |
download | ffmpeg-fd6e513ee1dc13174256de8adaeeb2c2691eee95.tar.gz |
* uninitialized/unused vars cleanup
Originally committed as revision 1859 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavformat/mov.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libavformat/mov.c b/libavformat/mov.c index 91e1162310..abd7661bcc 100644 --- a/libavformat/mov.c +++ b/libavformat/mov.c @@ -383,7 +383,6 @@ static int mov_read_hdlr(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; int len = 0; - uint8_t *buf; uint32_t type; uint32_t ctype; @@ -576,8 +575,6 @@ static int mov_read_moov(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) static int mov_read_mdhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { - AVStream *st = c->fc->streams[c->fc->nb_streams-1]; - print_atom("mdhd", atom); get_byte(pb); /* version */ @@ -674,7 +671,7 @@ static int mov_read_stco(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; - MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; + //MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; int entries, frames_per_sample; uint32_t format; @@ -924,7 +921,7 @@ static int mov_read_stsz(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) static int mov_read_stts(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { AVStream *st = c->fc->streams[c->fc->nb_streams-1]; - MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; + //MOVStreamContext *sc = (MOVStreamContext *)st->priv_data; int entries, i; print_atom("stts", atom); @@ -1023,7 +1020,6 @@ static int mov_read_tkhd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) static int mov_read_wide(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) { int err; - uint32_t type; #ifdef DEBUG print_atom("wide", atom); @@ -1038,7 +1034,7 @@ static int mov_read_wide(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom) atom.type = get_le32(pb); atom.offset += 8; atom.size -= 8; - if (type != MKTAG('m', 'd', 'a', 't')) { + if (atom.type != MKTAG('m', 'd', 'a', 't')) { url_fskip(pb, atom.size); return 0; } |