MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / shift_data

Function shift_data

libavformat/movenc.c:8636–8649  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8634}
8635
8636static int shift_data(AVFormatContext *s)
8637{
8638 int moov_size;
8639 MOVMuxContext *mov = s->priv_data;
8640
8641 if (mov->flags & FF_MOV_FLAG_FRAGMENT)
8642 moov_size = compute_sidx_size(s);
8643 else
8644 moov_size = compute_moov_size(s);
8645 if (moov_size < 0)
8646 return moov_size;
8647
8648 return ff_format_shift_data(s, mov->reserved_header_pos, moov_size);
8649}
8650
8651static void mov_write_mdat_size(AVFormatContext *s)
8652{

Callers 1

mov_write_trailerFunction · 0.70

Calls 3

compute_sidx_sizeFunction · 0.85
compute_moov_sizeFunction · 0.85
ff_format_shift_dataFunction · 0.85

Tested by

no test coverage detected