[vlc-commits] omxil: Enable pts mode for OMX.STM.Video.Decoder

Hugues Fruchet git at videolan.org
Thu Jan 10 16:24:55 CET 2013


vlc | branch: master | Hugues Fruchet <hugues.fruchet at st.com> | Wed Dec 19 14:04:27 2012 +0100| [bf1d561ff3c8ff54aabb664738f16378d2cfc381] | committer: Rafaël Carré

omxil: Enable pts mode for OMX.STM.Video.Decoder

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 at videolan.org>

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

 modules/codec/omxil/omxil.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/modules/codec/omxil/omxil.c b/modules/codec/omxil/omxil.c
index 7794dee..c2426f8 100644
--- a/modules/codec/omxil/omxil.c
+++ b/modules/codec/omxil/omxil.c
@@ -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:



More information about the vlc-commits mailing list