static int mov_write_mdia_tag(AVIOContext *pb, MOVMuxContext *mov,

                              MOVTrack *track)

{

    int64_t pos = avio_tell(pb);

    avio_wb32(pb, 0); /* size */

    ffio_wfourcc(pb, "mdia");

    mov_write_mdhd_tag(pb, mov, track);

    mov_write_hdlr_tag(pb, track);

    mov_write_minf_tag(pb, track);

    return update_size(pb, pos);

}

static int mov_write_mdia_tag(AVIOContext *pb, MOVMuxContext *mov,

                              MOVTrack *track)

{

    int64_t pos = avio_tell(pb);

    avio_wb32(pb, 0); 

    ffio_wfourcc(pb, "mdia");

    mov_write_mdhd_tag(pb, mov, track);

    mov_write_hdlr_tag(pb, track);

    mov_write_minf_tag(pb, track);

    return update_size(pb, pos);

}

    mov_write_minf_tag(pb, track);
static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,

                              MOVTrack *VAR_2)

{

    int64_t pos = avio_tell(VAR_0);

    avio_wb32(VAR_0, 0); 

    ffio_wfourcc(VAR_0, "mdia");

    mov_write_mdhd_tag(VAR_0, VAR_1, VAR_2);

    mov_write_hdlr_tag(VAR_0, VAR_2);

    mov_write_minf_tag(VAR_0, VAR_2);

    return update_size(VAR_0, pos);

}

static int FUNC_0(AVIOContext *VAR_0, MOVMuxContext *VAR_1,
MOVTrack *VAR_2)
{ int64_t pos = avio_tell(VAR_0); avio_wb32(VAR_0, 0); ffio_wfourcc(VAR_0, "mdia"); mov_write_mdhd_tag(VAR_0, VAR_1, VAR_2); mov_write_hdlr_tag(VAR_0, VAR_2); mov_write_minf_tag(VAR_0, VAR_2); return update_size(VAR_0, pos); }