int mov_write_samr_tag(ByteIOContext *pb, MOVTrack* track)
static int mov_write_samr_tag(ByteIOContext *pb, MOVTrack* track)
int mov_write_samr_tag(ByteIOContext *pb, MOVTrack* track){    int size = 0x24;    int pos;    pos = url_ftell(pb);    put_be32(pb, 0); /* size */    /* "samr" for AMR NB, "sawb" for AMR WB */    put_tag(pb, "samr");    put_be32(pb, 0); /* Reserved */    put_be16(pb, 0); /* Reserved */    put_be16(pb, 1); /* Data-reference index, XXX  == 1 */    put_be32(pb, 0); /* Reserved */    put_be32(pb, 0); /* Reserved */    put_be16(pb, 2); /* Reserved */    put_be16(pb, 0x10); /* Reserved */    put_be32(pb, 0); /* Reserved */    put_be16(pb, track->timescale); /* Time scale */    put_be16(pb, 0); /* Reserved */    size += mov_write_damr_tag(pb);    writeSize (pb, pos, size);    return size;}