* Write the header of the output file container. * @param output_format_context Format context of the output file * @return Error code (0 if successful) */
| 344 | * @return Error code (0 if successful) |
| 345 | */ |
| 346 | static int write_output_file_header(AVFormatContext *output_format_context) |
| 347 | { |
| 348 | int error; |
| 349 | if ((error = avformat_write_header(output_format_context, NULL)) < 0) { |
| 350 | fprintf(stderr, "Could not write output file header (error '%s')\n", |
| 351 | av_err2str(error)); |
| 352 | return error; |
| 353 | } |
| 354 | return 0; |
| 355 | } |
| 356 | |
| 357 | /** |
| 358 | * Decode one audio frame from the input file. |
no test coverage detected