[vlc-commits] ogg demux: generate correct PTS for opus
Rafaël Carré
git at videolan.org
Mon Jun 24 06:51:53 CEST 2013
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Jun 24 06:50:23 2013 +0200| [c18f650a6663a5adde2153e6a22d0b70be82403a] | committer: Rafaël Carré
ogg demux: generate correct PTS for opus
Refs: #8295
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c18f650a6663a5adde2153e6a22d0b70be82403a
---
modules/demux/ogg.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c
index b572b44..d9312e8 100644
--- a/modules/demux/ogg.c
+++ b/modules/demux/ogg.c
@@ -948,8 +948,8 @@ static void Ogg_DecodePacket( demux_t *p_demux,
if( i_pts == VLC_TS_INVALID ) i_pts = VLC_TS_0;
else if( i_pts == -1 && i_interpolated_pts == VLC_TS_INVALID )
i_pts = VLC_TS_0;
- else if( i_pts == -1 && p_stream->fmt.i_cat == VIDEO_ES )
- i_pts = i_interpolated_pts;
+ else if( i_pts == -1 && (p_stream->fmt.i_cat == VIDEO_ES || p_stream->fmt.i_codec == VLC_CODEC_OPUS) )
+ i_pts = i_interpolated_pts; /* FIXME : why is this incorrect for vorbis? */
else if( i_pts == -1 ) i_pts = VLC_TS_INVALID;
if( p_stream->fmt.i_cat == AUDIO_ES )
More information about the vlc-commits
mailing list