return -1;
}
-static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad)
+static void gxf_write_padding(ByteIOContext *pb, int64_t to_pad)
{
for (; to_pad > 0; to_pad--) {
put_byte(pb, 0);
}
}
-static offset_t updatePacketSize(ByteIOContext *pb, offset_t pos)
+static int64_t updatePacketSize(ByteIOContext *pb, int64_t pos)
{
- offset_t curpos;
+ int64_t curpos;
int size;
size = url_ftell(pb) - pos;
return curpos - pos;
}
-static offset_t updateSize(ByteIOContext *pb, offset_t pos)
+static int64_t updateSize(ByteIOContext *pb, int64_t pos)
{
- offset_t curpos;
+ int64_t curpos;
curpos = url_ftell(pb);
url_fseek(pb, pos, SEEK_SET);
static int gxf_write_track_description(ByteIOContext *pb, GXFStreamContext *stream)
{
- offset_t pos;
+ int64_t pos;
/* track description section */
put_byte(pb, stream->media_type + 0x80);
static int gxf_write_material_data_section(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos;
+ int64_t pos;
const char *filename = strrchr(ctx->fc->filename, '/');
pos = url_ftell(pb);
static int gxf_write_track_description_section(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos;
+ int64_t pos;
int i;
pos = url_ftell(pb);
static int gxf_write_map_packet(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
gxf_write_packet_header(pb, PKT_MAP);
#if 0
static int gxf_write_flt_packet(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
int i;
gxf_write_packet_header(pb, PKT_FLT);
static int gxf_write_umf_track_description(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
int tracks[255]={0};
int i;
static int gxf_write_umf_media_description(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos;
+ int64_t pos;
int i;
pos = url_ftell(pb);
for (i = 0; i < ctx->fc->nb_streams; ++i) {
GXFStreamContext *sc = &ctx->streams[i];
char buffer[88];
- offset_t startpos, curpos;
+ int64_t startpos, curpos;
int path_size = strlen(ES_NAME_PATTERN);
memset(buffer, 0, 88);
static int gxf_write_umf_user_data(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
ctx->umf_user_data_offset = pos - ctx->umf_start_offset;
put_le32(pb, 20);
put_le32(pb, 0);
static int gxf_write_umf_packet(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
gxf_write_packet_header(pb, PKT_UMF);
static int gxf_write_eos_packet(ByteIOContext *pb, GXFContext *ctx)
{
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
gxf_write_packet_header(pb, PKT_EOS);
return updatePacketSize(pb, pos);
{
ByteIOContext *pb = s->pb;
GXFContext *gxf = s->priv_data;
- offset_t end;
+ int64_t end;
int i;
for (i = 0; i < s->nb_streams; ++i) {
static int gxf_write_media_packet(ByteIOContext *pb, GXFContext *ctx, AVPacket *pkt)
{
GXFStreamContext *sc = &ctx->streams[pkt->stream_index];
- offset_t pos = url_ftell(pb);
+ int64_t pos = url_ftell(pb);
int padding = 0;
gxf_write_packet_header(pb, PKT_MEDIA);