put_be32(pb, 0);  put_be32(pb, 1);  put_be32(pb, 0x1);  return 0x14;
put_be32(pb, 0); entryPos = url_ftell(pb); put_be32(pb, track->entry); for (i=0; i<track->entry; i++) { int cl = i / MOV_INDEX_CLUSTER_SIZE; int id = i % MOV_INDEX_CLUSTER_SIZE; if(track->cluster[cl][id].key_frame == 1) { put_be32(pb, i+1); index++; } } curpos = url_ftell(pb); url_fseek(pb, entryPos, SEEK_SET); put_be32(pb, index); url_fseek(pb, curpos, SEEK_SET); return updateSize (pb, pos);
static int mov_write_stss_tag(ByteIOContext *pb) //TRA OK{    put_be32(pb, 0x14); /* size */    put_tag(pb, "stss");    put_be32(pb, 0); /* version & flags */    put_be32(pb, 1); /* entry count */    put_be32(pb, 0x1); /* sample number */    return 0x14;}