vlc | branch: master | Steve Lhomme <rob...@videolabs.io> | Wed Mar 18 11:53:53 
2015 +0000| [fcf5a9e513ba11c68d47b39239e0b5ecdad2eaad] | committer: 
Jean-Baptiste Kempf

MKV: packetized codec can use VLC_TS_INVALID as i_pts for extra Block frames

Fixes WMA 9.1 Lossless playback through avcodec

Signed-off-by: Jean-Baptiste Kempf <j...@videolan.org>

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

 modules/demux/mkv/mkv.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/mkv/mkv.cpp b/modules/demux/mkv/mkv.cpp
index 9a84a00..e6eb2ed 100644
--- a/modules/demux/mkv/mkv.cpp
+++ b/modules/demux/mkv/mkv.cpp
@@ -723,7 +723,7 @@ msg_Dbg( p_demux, "block (track=%d) i_dts: %"PRId64" / 
i_pts: %"PRId64, tk->i_nu
         /* use time stamp only for first block */
         i_pts = ( tk->i_default_duration )?
                  i_pts + ( mtime_t )tk->i_default_duration:
-                 VLC_TS_INVALID;
+                 ( tk->fmt.b_packetized ) ? VLC_TS_INVALID : i_pts + 1;
     }
 }
 

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to