static int mov_read_moov(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)

{

    int err;



    err = mov_read_default(c, pb, atom);

    /* we parsed the 'moov' atom, we can terminate the parsing as soon as we find the 'mdat' */

    /* so we don't parse the whole file if over a network */

    c->found_moov=1;

    if(c->found_mdat)

        return 1; /* found both, just go */

    return 0; /* now go for mdat */

}

static int mov_read_moov(MOVContext *c, ByteIOContext *pb, MOV_atom_t atom)

{

    int err;



    err = mov_read_default(c, pb, atom);

    

    

    c->found_moov=1;

    if(c->found_mdat)

        return 1; 

    return 0; 

}

static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)

{

    int VAR_3;



    VAR_3 = mov_read_default(VAR_0, VAR_1, VAR_2);

    

    

    VAR_0->found_moov=1;

    if(VAR_0->found_mdat)

        return 1; 

    return 0; 

}

static int FUNC_0(MOVContext *VAR_0, ByteIOContext *VAR_1, MOV_atom_t VAR_2)
{ int VAR_3; VAR_3 = mov_read_default(VAR_0, VAR_1, VAR_2); VAR_0->found_moov=1; if(VAR_0->found_mdat)
return 1; return 0; }