[vlc-commits] demux: ogg: move tarkin hack

Francois Cartegnie git at videolan.org
Fri Dec 15 16:42:41 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 14 19:05:20 2017 +0100| [62f87239559b1641f3deb0da3682ac0cc1d59aca] | committer: Francois Cartegnie

demux: ogg: move tarkin hack

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

 modules/demux/ogg.c | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index 218dd42d3c..4eefa4c558 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1447,6 +1447,13 @@ static void Ogg_DecodePacket( demux_t *p_demux,
             es_out_Del( p_demux->out, p_stream->p_es );
             p_stream->p_es = es_out_Add( p_demux->out, &p_stream->fmt );
         }
+        else if( p_stream->fmt.i_codec == VLC_CODEC_TARKIN )
+        {
+            /* FIXME: the biggest hack I've ever done */
+            msg_Warn( p_demux, "tarkin pts: %"PRId64", granule: %"PRId64,
+                      p_block->i_pts, p_block->i_dts );
+            msleep(10000);
+        }
 
         /* Blatant abuse of the i_length field. */
         p_block->i_length = p_stream->i_end_trim;
@@ -1516,15 +1523,6 @@ static void Ogg_DecodePacket( demux_t *p_demux,
             p_block->i_buffer = 0;
     }
 
-
-    if( p_stream->fmt.i_codec == VLC_CODEC_TARKIN )
-    {
-        /* FIXME: the biggest hack I've ever done */
-        msg_Warn( p_demux, "tarkin pts: %"PRId64", granule: %"PRId64,
-                  p_block->i_pts, p_block->i_dts );
-        msleep(10000);
-    }
-
     memcpy( p_block->p_buffer, p_oggpacket->packet + i_header_len,
             p_oggpacket->bytes - i_header_len );
 



More information about the vlc-commits mailing list