X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=modules%2Fdemux%2Fogg.c;h=d9312e8b5d399f155b5358f7ef7da95c2b066895;hb=c18f650a6663a5adde2153e6a22d0b70be82403a;hp=b572b44f11a93ca4ad182bc8ac73d2cac31182a4;hpb=a8b31261283395cd9cf66696c868fe4a39a91f1f;p=vlc diff --git a/modules/demux/ogg.c b/modules/demux/ogg.c index b572b44f11..d9312e8b5d 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 )