[FFmpeg-cvslog] lavd/v4l2: fix printing of list_formats table

Giorgio Vazzana git at videolan.org
Thu Mar 28 16:25:48 CET 2013


ffmpeg | branch: master | Giorgio Vazzana <mywing81 at gmail.com> | Thu Mar 28 14:05:53 2013 +0100| [5009863ab5a4db6979eb39ea543d07c212f6b7df] | committer: Michael Niedermayer

lavd/v4l2: fix printing of list_formats table

In particular we needed a '\n' at the end of the line when the format is emulated.

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

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

 libavdevice/v4l2.c |    6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 539eae6..284b495 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -371,10 +371,8 @@ static void list_formats(AVFormatContext *ctx, int fd, int type)
         }
 
 #ifdef V4L2_FMT_FLAG_EMULATED
-        if (vfd.flags & V4L2_FMT_FLAG_EMULATED) {
-            av_log(ctx, AV_LOG_WARNING, "%s", "Emulated");
-            continue;
-        }
+        if (vfd.flags & V4L2_FMT_FLAG_EMULATED)
+            av_log(ctx, AV_LOG_INFO, " Emulated :");
 #endif
 #if HAVE_STRUCT_V4L2_FRMIVALENUM_DISCRETE
         list_framesizes(ctx, fd, vfd.pixelformat);



More information about the ffmpeg-cvslog mailing list