| 336 | } |
| 337 | |
| 338 | static 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 | |
| 355 | static int write_stream_data(AVFormatContext *s, AVStream *st) |
| 356 | { |
no test coverage detected