[FFmpeg-cvslog] ffmpeg: explicitly write headers for files with no streams
Hendrik Leppkes
git at videolan.org
Fri Oct 7 17:07:54 EEST 2016
ffmpeg | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Fri Oct 7 15:44:39 2016 +0200| [ab7e83efed9c8fb30777287304c0de3cc614ce57] | committer: Hendrik Leppkes
ffmpeg: explicitly write headers for files with no streams
Recent changes to ffmpeg.c tied output file init to stream init, which broke
stream-less files, specifically ffmetadata output.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=ab7e83efed9c8fb30777287304c0de3cc614ce57
---
ffmpeg.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/ffmpeg.c b/ffmpeg.c
index 454e193..49d91be 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -3460,6 +3460,16 @@ static int transcode_init(void)
}
}
+ /* write headers for files with no streams */
+ for (i = 0; i < nb_output_files; i++) {
+ oc = output_files[i]->ctx;
+ if (oc->oformat->flags & AVFMT_NOSTREAMS && oc->nb_streams == 0) {
+ ret = check_init_output_file(output_files[i], i);
+ if (ret < 0)
+ goto dump_format;
+ }
+ }
+
dump_format:
/* dump the stream mapping */
av_log(NULL, AV_LOG_INFO, "Stream mapping:\n");
More information about the ffmpeg-cvslog
mailing list