| 316 | } |
| 317 | |
| 318 | static int write_stream_codec(AVFormatContext *s, AVStream * st) |
| 319 | { |
| 320 | AVIOContext *pb = s->pb; |
| 321 | int ret; |
| 322 | write_chunk_header2(s, &ff_stream1_guid, 0x80000000 | 0x01); |
| 323 | |
| 324 | avio_wl32(pb, 0x01); |
| 325 | write_pad(pb, 4); |
| 326 | write_pad(pb, 4); |
| 327 | |
| 328 | ret = write_stream_codec_info(s, st); |
| 329 | if (ret < 0) { |
| 330 | av_log(s, AV_LOG_ERROR, "write stream codec info failed codec_type(0x%x)\n", st->codecpar->codec_type); |
| 331 | return -1; |
| 332 | } |
| 333 | |
| 334 | finish_chunk(s); |
| 335 | return 0; |
| 336 | } |
| 337 | |
| 338 | static void write_sync(AVFormatContext *s) |
| 339 | { |
no test coverage detected