[FFmpeg-cvslog] avcodec/v4l2_m2m: log planar mode used by driver

Aman Gupta git at videolan.org
Tue Sep 3 01:26:50 EEST 2019


ffmpeg | branch: master | Aman Gupta <aman at tmm1.net> | Thu Aug 22 11:03:31 2019 -0700| [e8c5ce1acb8bb7ad09dbe03c6ccb48874c2f9606] | committer: Aman Gupta

avcodec/v4l2_m2m: log planar mode used by driver

Signed-off-by: Aman Gupta <aman at tmm1.net>

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

 libavcodec/v4l2_m2m.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/libavcodec/v4l2_m2m.c b/libavcodec/v4l2_m2m.c
index 626ccb2f7b..82ff847cf7 100644
--- a/libavcodec/v4l2_m2m.c
+++ b/libavcodec/v4l2_m2m.c
@@ -76,7 +76,9 @@ static int v4l2_prepare_contexts(V4L2m2mContext* s)
     if (ret < 0)
         return ret;
 
-    av_log(s->avctx, AV_LOG_INFO, "driver '%s' on card '%s'\n", cap.driver, cap.card);
+    av_log(s->avctx, AV_LOG_INFO, "driver '%s' on card '%s' in %s mode\n", cap.driver, cap.card,
+                                   v4l2_mplane_video(&cap) ? "mplane" :
+                                   v4l2_splane_video(&cap) ? "splane" : "unknown");
 
     if (v4l2_mplane_video(&cap)) {
         s->capture.type = V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE;



More information about the ffmpeg-cvslog mailing list