Lines Matching refs:output_format_context
142 * @param[out] output_format_context Format context of output file
148 AVFormatContext **output_format_context,
166 if (!(*output_format_context = avformat_alloc_context())) {
172 (*output_format_context)->pb = output_io_context;
175 if (!((*output_format_context)->oformat = av_guess_format(NULL, filename,
181 if (!((*output_format_context)->url = av_strdup(filename))) {
194 if (!(stream = avformat_new_stream(*output_format_context, NULL))) {
220 if ((*output_format_context)->oformat->flags & AVFMT_GLOBALHEADER)
243 avio_closep(&(*output_format_context)->pb);
244 avformat_free_context(*output_format_context);
245 *output_format_context = NULL;
343 * @param output_format_context Format context of the output file
346 static int write_output_file_header(AVFormatContext *output_format_context)
349 if ((error = avformat_write_header(output_format_context, NULL)) < 0) {
659 * @param output_format_context Format context of the output file
666 AVFormatContext *output_format_context,
718 (error = av_write_frame(output_format_context, output_packet)) < 0) {
733 * @param output_format_context Format context of the output file
738 AVFormatContext *output_format_context,
763 if (encode_audio_frame(output_frame, output_format_context,
774 * @param output_format_context Format context of the output file
777 static int write_output_file_trailer(AVFormatContext *output_format_context)
780 if ((error = av_write_trailer(output_format_context)) < 0) {
790 AVFormatContext *input_format_context = NULL, *output_format_context = NULL;
807 &output_format_context, &output_codec_context))
817 if (write_output_file_header(output_format_context))
854 if (load_encode_and_write(fifo, output_format_context,
864 if (encode_audio_frame(NULL, output_format_context,
873 if (write_output_file_trailer(output_format_context))
883 if (output_format_context) {
884 avio_closep(&output_format_context->pb);
885 avformat_free_context(output_format_context);