| 444 | } |
| 445 | |
| 446 | int avformat_init_output(AVFormatContext *s, AVDictionary **options) |
| 447 | { |
| 448 | FormatContextInternal *const fci = ff_fc_internal(s); |
| 449 | int ret = 0; |
| 450 | |
| 451 | if ((ret = init_muxer(s, options)) < 0) |
| 452 | return ret; |
| 453 | |
| 454 | fci->initialized = 1; |
| 455 | fci->streams_initialized = ret; |
| 456 | |
| 457 | if (ffofmt(s->oformat)->init && ret) { |
| 458 | if ((ret = init_pts(s)) < 0) |
| 459 | return ret; |
| 460 | |
| 461 | return AVSTREAM_INIT_IN_INIT_OUTPUT; |
| 462 | } |
| 463 | |
| 464 | return AVSTREAM_INIT_IN_WRITE_HEADER; |
| 465 | } |
| 466 | |
| 467 | int avformat_write_header(AVFormatContext *s, AVDictionary **options) |
| 468 | { |
no test coverage detected