[vlc-devel] [PATCH 2/2] mmal/codec: Increase verbosity for interlaced detection

Julian Scheel julian at jusst.de
Fri Oct 10 10:40:08 CEST 2014


Makes debugging of badly deinterlaced content a bit easier.

Signed-off-by: Julian Scheel <julian at jusst.de>
---
 modules/hw/mmal/codec.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/hw/mmal/codec.c b/modules/hw/mmal/codec.c
index e778a70..1a08fd3 100644
--- a/modules/hw/mmal/codec.c
+++ b/modules/hw/mmal/codec.c
@@ -375,7 +375,10 @@ static int change_output_format(decoder_t *dec)
         sys->b_progressive = (interlace_type.eMode == MMAL_InterlaceProgressive);
         sys->b_top_field_first = sys->b_progressive ? true :
             (interlace_type.eMode == MMAL_InterlaceFieldsInterleavedUpperFirst);
-        msg_Dbg(dec, "Detected %s video", sys->b_progressive ? "progressive" : "interlaced");
+        msg_Dbg(dec, "Detected %s%s video (%d)",
+                sys->b_progressive ? "progressive" : "interlaced",
+                sys->b_progressive ? "" : (sys->b_top_field_first ? " tff" : " bff"),
+                interlace_type.eMode);
     }
 
 out:
-- 
2.1.2




More information about the vlc-devel mailing list