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

Function write_sync

libavformat/wtvenc.c:338–353  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338static void write_sync(AVFormatContext *s)
339{
340 AVIOContext *pb = s->pb;
341 WtvContext *wctx = s->priv_data;
342 int64_t last_chunk_pos = wctx->last_chunk_pos;
343
344 write_chunk_header(s, &ff_sync_guid, 0x18, 0);
345 avio_wl64(pb, wctx->first_index_pos);
346 avio_wl64(pb, wctx->last_timestamp_pos);
347 avio_wl64(pb, 0);
348
349 finish_chunk(s);
350 add_serial_pair(&wctx->sp_pairs, &wctx->nb_sp_pairs, wctx->serial, wctx->last_chunk_pos);
351
352 wctx->last_chunk_pos = last_chunk_pos;
353}
354
355static int write_stream_data(AVFormatContext *s, AVStream *st)
356{

Callers 2

write_headerFunction · 0.85
write_packetFunction · 0.85

Calls 4

avio_wl64Function · 0.85
finish_chunkFunction · 0.85
add_serial_pairFunction · 0.85
write_chunk_headerFunction · 0.70

Tested by

no test coverage detected