[FFmpeg-devel] [PATCH]Print a warning if vp6 is muxed into flv

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Nov 22 23:10:20 CET 2014


FFmpeg should print a warning when the non-flipped version of vp6 is muxed 
into flv: The feature was requested and is used.
Related to ticket #4132.

Please comment, Carl Eugen
-------------- next part --------------
diff --git a/libavformat/flvenc.c b/libavformat/flvenc.c
index a8cd994..5468c4d 100644
--- a/libavformat/flvenc.c
+++ b/libavformat/flvenc.c
@@ -355,6 +355,9 @@ static int flv_write_header(AVFormatContext *s)
                            "use vstrict=-1 / -strict -1 to use it anyway.\n");
                     return AVERROR(EINVAL);
+            } else if (enc->codec_id == AV_CODEC_ID_VP6) {
+                av_log(s, AV_LOG_WARNING,
+                       "Muxing VP6 in flv will produce flipped video on playback.\n");
         case AVMEDIA_TYPE_AUDIO:

More information about the ffmpeg-devel mailing list