mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-21 10:55:51 +02:00
lavf/gxfenc: consistently use snake_case in function names
This commit is contained in:
parent
ad227a41d4
commit
3733aa7b17
@ -137,7 +137,7 @@ static void gxf_write_padding(AVIOContext *pb, int64_t to_pad)
|
||||
ffio_fill(pb, 0, to_pad);
|
||||
}
|
||||
|
||||
static int64_t updatePacketSize(AVIOContext *pb, int64_t pos)
|
||||
static int64_t update_packet_size(AVIOContext *pb, int64_t pos)
|
||||
{
|
||||
int64_t curpos;
|
||||
int size;
|
||||
@ -154,7 +154,7 @@ static int64_t updatePacketSize(AVIOContext *pb, int64_t pos)
|
||||
return curpos - pos;
|
||||
}
|
||||
|
||||
static int64_t updateSize(AVIOContext *pb, int64_t pos)
|
||||
static int64_t update_size(AVIOContext *pb, int64_t pos)
|
||||
{
|
||||
int64_t curpos;
|
||||
|
||||
@ -300,7 +300,7 @@ static int gxf_write_track_description(AVFormatContext *s, GXFStreamContext *sc,
|
||||
avio_w8(pb, 4);
|
||||
avio_wb32(pb, sc->fields);
|
||||
|
||||
return updateSize(pb, pos);
|
||||
return update_size(pb, pos);
|
||||
}
|
||||
|
||||
static int gxf_write_material_data_section(AVFormatContext *s)
|
||||
@ -351,7 +351,7 @@ static int gxf_write_material_data_section(AVFormatContext *s)
|
||||
avio_w8(pb, 4);
|
||||
avio_wb32(pb, avio_size(pb) / 1024);
|
||||
|
||||
return updateSize(pb, pos);
|
||||
return update_size(pb, pos);
|
||||
}
|
||||
|
||||
static int gxf_write_track_description_section(AVFormatContext *s)
|
||||
@ -368,7 +368,7 @@ static int gxf_write_track_description_section(AVFormatContext *s)
|
||||
|
||||
gxf_write_track_description(s, &gxf->timecode_track, s->nb_streams);
|
||||
|
||||
return updateSize(pb, pos);
|
||||
return update_size(pb, pos);
|
||||
}
|
||||
|
||||
static int gxf_write_map_packet(AVFormatContext *s, int rewrite)
|
||||
@ -400,7 +400,7 @@ static int gxf_write_map_packet(AVFormatContext *s, int rewrite)
|
||||
gxf_write_material_data_section(s);
|
||||
gxf_write_track_description_section(s);
|
||||
|
||||
return updatePacketSize(pb, pos);
|
||||
return update_packet_size(pb, pos);
|
||||
}
|
||||
|
||||
static int gxf_write_flt_packet(AVFormatContext *s)
|
||||
@ -424,7 +424,7 @@ static int gxf_write_flt_packet(AVFormatContext *s)
|
||||
|
||||
ffio_fill(pb, 0, (1000 - i) * 4);
|
||||
|
||||
return updatePacketSize(pb, pos);
|
||||
return update_packet_size(pb, pos);
|
||||
}
|
||||
|
||||
static int gxf_write_umf_material_description(AVFormatContext *s)
|
||||
@ -643,7 +643,7 @@ static int gxf_write_umf_packet(AVFormatContext *s)
|
||||
gxf->umf_track_size = gxf_write_umf_track_description(s);
|
||||
gxf->umf_media_size = gxf_write_umf_media_description(s);
|
||||
gxf->umf_length = avio_tell(pb) - gxf->umf_start_offset;
|
||||
return updatePacketSize(pb, pos);
|
||||
return update_packet_size(pb, pos);
|
||||
}
|
||||
|
||||
static void gxf_init_timecode_track(GXFStreamContext *sc, GXFStreamContext *vsc)
|
||||
@ -823,7 +823,7 @@ static int gxf_write_eos_packet(AVIOContext *pb)
|
||||
int64_t pos = avio_tell(pb);
|
||||
|
||||
gxf_write_packet_header(pb, PKT_EOS);
|
||||
return updatePacketSize(pb, pos);
|
||||
return update_packet_size(pb, pos);
|
||||
}
|
||||
|
||||
static int gxf_write_trailer(AVFormatContext *s)
|
||||
@ -956,7 +956,7 @@ static int gxf_write_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
gxf->nb_fields += 2; // count fields
|
||||
}
|
||||
|
||||
updatePacketSize(pb, pos);
|
||||
update_packet_size(pb, pos);
|
||||
|
||||
gxf->packet_count++;
|
||||
if (gxf->packet_count == 100) {
|
||||
|
Loading…
Reference in New Issue
Block a user