[FFmpeg-cvslog] movenc: Add a warning message if conflicting options have been specified

Martin Storsjö git at videolan.org
Tue Sep 10 10:16:01 CEST 2013


ffmpeg | branch: master | Martin Storsjö <martin at martin.st> | Mon Sep  9 14:13:55 2013 +0300| [8b524ab0c43c1767919530abb79d3656113cdc47] | committer: Martin Storsjö

movenc: Add a warning message if conflicting options have been specified

Signed-off-by: Martin Storsjö <martin at martin.st>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8b524ab0c43c1767919530abb79d3656113cdc47
---

 libavformat/movenc.c |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 29f5145..c6c149d 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -3141,8 +3141,11 @@ static int mov_write_header(AVFormatContext *s)
     /* faststart: moov at the beginning of the file, if supported */
     if (mov->flags & FF_MOV_FLAG_FASTSTART) {
         if ((mov->flags & FF_MOV_FLAG_FRAGMENT) ||
-            (s->flags & AVFMT_FLAG_CUSTOM_IO))
+            (s->flags & AVFMT_FLAG_CUSTOM_IO)) {
+            av_log(s, AV_LOG_WARNING, "The faststart flag is incompatible "
+                   "with fragmentation and custom IO, disabling faststart\n");
             mov->flags &= ~FF_MOV_FLAG_FASTSTART;
+        }
     }
 
     /* Non-seekable output is ok if using fragmentation. If ism_lookahead



More information about the ffmpeg-cvslog mailing list