| 160 | } |
| 161 | |
| 162 | static int write_header(AVFormatContext *format_context, uint8_t *header, |
| 163 | unsigned header_size) |
| 164 | { |
| 165 | int ret = ff_format_shift_data(format_context, 0, header_size); |
| 166 | if (ret < 0) |
| 167 | return ret; |
| 168 | |
| 169 | avio_seek(format_context->pb, 0, SEEK_SET); |
| 170 | avio_write(format_context->pb, header, header_size); |
| 171 | |
| 172 | return 0; |
| 173 | } |
| 174 | |
| 175 | static int film_write_header(AVFormatContext *format_context) |
| 176 | { |
no test coverage detected