1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-17 04:22:41 +00:00

Do not use correct-pts for mpeg-ts and matroska: It breaks PAFF samples.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30134 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
cehoyos 2009-12-28 13:49:08 +00:00
parent d79daa2736
commit ed4dbd3cbd

View File

@ -613,6 +613,9 @@ static int demux_lavf_control(demuxer_t *demuxer, int cmd, void *arg)
switch (cmd) {
case DEMUXER_CTRL_CORRECT_PTS:
if (!strcmp("matroska", priv->avif->name) ||
!strcmp("mpegts", priv->avif->name))
return DEMUXER_CTRL_NOTIMPL;
return DEMUXER_CTRL_OK;
case DEMUXER_CTRL_GET_TIME_LENGTH:
if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE)