]> git.sesse.net Git - vlc/commitdiff
omxil: Enable pts mode for OMX.STM.Video.Decoder
authorHugues Fruchet <hugues.fruchet@st.com>
Wed, 19 Dec 2012 13:04:27 +0000 (14:04 +0100)
committerRafaël Carré <funman@videolan.org>
Thu, 10 Jan 2013 15:24:18 +0000 (16:24 +0100)
OMX.STM.Video.Decoder requires input buffers with pts timestamp.
A debug trace is added to inform if pts mode is enabled and for
which codec.

Signed-off-by: Rafaël Carré <funman@videolan.org>
modules/codec/omxil/omxil.c

index 7794dee7a62a9ba3e35a69e79358553b962be008..c2426f86341aa58b773ffdc00a6f1200b566c1ee 100644 (file)
@@ -1109,6 +1109,13 @@ loaded:
     p_dec->b_need_packetized = true;
     if (!strcmp(p_sys->psz_component, "OMX.TI.DUCATI1.VIDEO.DECODER"))
         p_sys->b_use_pts = 1;
+
+    if (!strcmp(p_sys->psz_component, "OMX.STM.Video.Decoder"))
+        p_sys->b_use_pts = 1;
+
+    if (p_sys->b_use_pts)
+        msg_Dbg( p_dec, "using pts timestamp mode for %s", p_sys->psz_component);
+
     return VLC_SUCCESS;
 
  error: