Mercurial > mplayer.hg
comparison libmpdemux/demux_lavf.c @ 30058:e31fc74955d5
Do not use correct-pts by default for demuxer lavf, it breaks all PAFF files.
author | cehoyos |
---|---|
date | Tue, 22 Dec 2009 20:56:59 +0000 |
parents | 4f740437ed2b |
children | 1368993fb7a9 |
comparison
equal
deleted
inserted
replaced
30057:8eb6ecdd1b6c | 30058:e31fc74955d5 |
---|---|
610 static int demux_lavf_control(demuxer_t *demuxer, int cmd, void *arg) | 610 static int demux_lavf_control(demuxer_t *demuxer, int cmd, void *arg) |
611 { | 611 { |
612 lavf_priv_t *priv = demuxer->priv; | 612 lavf_priv_t *priv = demuxer->priv; |
613 | 613 |
614 switch (cmd) { | 614 switch (cmd) { |
615 case DEMUXER_CTRL_CORRECT_PTS: | |
616 return DEMUXER_CTRL_OK; | |
617 case DEMUXER_CTRL_GET_TIME_LENGTH: | 615 case DEMUXER_CTRL_GET_TIME_LENGTH: |
618 if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE) | 616 if (priv->avfc->duration == 0 || priv->avfc->duration == AV_NOPTS_VALUE) |
619 return DEMUXER_CTRL_DONTKNOW; | 617 return DEMUXER_CTRL_DONTKNOW; |
620 | 618 |
621 *((double *)arg) = (double)priv->avfc->duration / AV_TIME_BASE; | 619 *((double *)arg) = (double)priv->avfc->duration / AV_TIME_BASE; |