[vlc-commits] demux: ogg: move tarkin hack
Francois Cartegnie
git at videolan.org
Fri Dec 15 16:44:23 CET 2017
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Thu Dec 14 19:05:20 2017 +0100| [1e877a89255548bfea25c78007e916ce8de0364e] | committer: Francois Cartegnie
demux: ogg: move tarkin hack
(cherry picked from commit 62f87239559b1641f3deb0da3682ac0cc1d59aca)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=1e877a89255548bfea25c78007e916ce8de0364e
---
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 775e51b69a..5a89d34156 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -1440,6 +1440,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;
@@ -1509,15 +1516,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