* uninitialized/unused vars cleanup

Originally committed as revision 1859 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Zdenek Kabelac 2003-05-12 11:07:46 +00:00
parent 5ca1d879bb
commit fd6e513ee1

View File

@ -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]; AVStream *st = c->fc->streams[c->fc->nb_streams-1];
int len = 0; int len = 0;
uint8_t *buf;
uint32_t type; uint32_t type;
uint32_t ctype; 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) 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); print_atom("mdhd", atom);
get_byte(pb); /* version */ 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) static int mov_read_stsd(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{ {
AVStream *st = c->fc->streams[c->fc->nb_streams-1]; 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; int entries, frames_per_sample;
uint32_t format; 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) static int mov_read_stts(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{ {
AVStream *st = c->fc->streams[c->fc->nb_streams-1]; 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; int entries, i;
print_atom("stts", atom); 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) static int mov_read_wide(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)
{ {
int err; int err;
uint32_t type;
#ifdef DEBUG #ifdef DEBUG
print_atom("wide", atom); 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.type = get_le32(pb);
atom.offset += 8; atom.offset += 8;
atom.size -= 8; atom.size -= 8;
if (type != MKTAG('m', 'd', 'a', 't')) { if (atom.type != MKTAG('m', 'd', 'a', 't')) {
url_fskip(pb, atom.size); url_fskip(pb, atom.size);
return 0; return 0;
} }