Commit 1c1a74e5 authored by Laurent Aimar's avatar Laurent Aimar

* ogg: change i_dts usage for subtitle ES.

parent d7510989
......@@ -2,7 +2,7 @@
* ogg.c : ogg stream input module for vlc
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: ogg.c,v 1.8 2002/11/06 21:48:23 gbazin Exp $
* $Id: ogg.c,v 1.9 2002/11/18 19:31:20 fenrir Exp $
*
* Authors: Gildas Bazin <gbazin@netcourrier.com>
*
......@@ -369,6 +369,7 @@ static void Ogg_DecodePacket( input_thread_t *p_input,
return;
}
p_pes->i_dts = p_oggpacket->granulepos;
/* Convert the pcr into a pts */
if( p_stream->i_cat != SPU_ES )
{
......@@ -383,6 +384,7 @@ static void Ogg_DecodePacket( input_thread_t *p_input,
input_ClockGetTS( p_input, p_input->stream.p_selected_program,
p_oggpacket->granulepos * 90000 /
p_stream->i_rate );
p_pes->i_dts = 0;
}
/* Convert the next granule into a pcr */
......@@ -414,7 +416,6 @@ static void Ogg_DecodePacket( input_thread_t *p_input,
}
p_pes->i_nb_data = 1;
p_pes->i_dts = p_oggpacket->granulepos;
p_pes->p_first = p_pes->p_last = p_data;
p_pes->i_pes_size = p_oggpacket->bytes;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment