| 8634 | } |
| 8635 | |
| 8636 | static 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 | |
| 8651 | static void mov_write_mdat_size(AVFormatContext *s) |
| 8652 | { |
no test coverage detected