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 */



    get_byte(pb); get_byte(pb);

    get_byte(pb); /* flags */



    get_be32(pb); /* creation time */

    get_be32(pb); /* modification time */



    c->streams[c->total_streams]->time_scale = get_be32(pb);



#ifdef DEBUG

    printf("track[%i].time_scale = %i\n", c->fc->nb_streams-1, c->streams[c->total_streams]->time_scale); /* time scale */

#endif

    get_be32(pb); /* duration */



    get_be16(pb); /* language */

    get_be16(pb); /* quality */



    return 0;

}

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); 



    get_byte(pb); get_byte(pb);

    get_byte(pb); 



    get_be32(pb); 

    get_be32(pb); 



    c->streams[c->total_streams]->time_scale = get_be32(pb);



#ifdef DEBUG

    printf("track[%i].time_scale = %i\n", c->fc->nb_streams-1, c->streams[c->total_streams]->time_scale); 

#endif

    get_be32(pb); 



    get_be16(pb); 

    get_be16(pb); 



    return 0;

}

    AVStream *st = c->fc->streams[c->fc->nb_streams-1];
static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)

{

    AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1];



    print_atom("mdhd", VAR_2);



    get_byte(VAR_1); 



    get_byte(VAR_1); get_byte(VAR_1);

    get_byte(VAR_1); 



    get_be32(VAR_1); 

    get_be32(VAR_1); 



    VAR_0->streams[VAR_0->total_streams]->time_scale = get_be32(VAR_1);



#ifdef DEBUG

    printf("track[%i].time_scale = %i\n", VAR_0->fc->nb_streams-1, VAR_0->streams[VAR_0->total_streams]->time_scale); 

#endif

    get_be32(VAR_1); 



    get_be16(VAR_1); 

    get_be16(VAR_1); 



    return 0;

}

static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)
{ AVStream *st = VAR_0->fc->streams[VAR_0->fc->nb_streams-1]; print_atom("mdhd", VAR_2); get_byte(VAR_1); get_byte(VAR_1); get_byte(VAR_1); get_byte(VAR_1); get_be32(VAR_1); get_be32(VAR_1); VAR_0->streams[VAR_0->total_streams]->time_scale = get_be32(VAR_1); #ifdef DEBUG
printf("track[%i].time_scale = %i\n", VAR_0->fc->nb_streams-1, VAR_0->streams[VAR_0->total_streams]->time_scale); #endif
get_be32(VAR_1); get_be16(VAR_1); get_be16(VAR_1); return 0; }