diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-03-16 20:08:49 +0400 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2012-03-17 00:48:01 +0400 |
commit | fa657f55ba2258349020c2b478e025f3f83e9092 (patch) | |
tree | af8e11f11fe831e646ee99abd53900c940c5000e /demuxer | |
parent | bdfaff614854b41befba6879727e9633ba0f4d74 (diff) |
Enable timestamp processing for raw mpegvideo
Diffstat (limited to 'demuxer')
-rw-r--r-- | demuxer/Demuxers/LAVFDemuxer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/demuxer/Demuxers/LAVFDemuxer.cpp b/demuxer/Demuxers/LAVFDemuxer.cpp index 529fd2ab..7d5ea0bf 100644 --- a/demuxer/Demuxers/LAVFDemuxer.cpp +++ b/demuxer/Demuxers/LAVFDemuxer.cpp @@ -286,7 +286,7 @@ inline static int init_parser(AVFormatContext *s, AVStream *st) { void CLAVFDemuxer::UpdateParserFlags(AVStream *st) { if (st->parser) { - if (st->codec->codec_id == CODEC_ID_MPEG2VIDEO || st->codec->codec_id == CODEC_ID_MPEG1VIDEO) { + if ((st->codec->codec_id == CODEC_ID_MPEG2VIDEO || st->codec->codec_id == CODEC_ID_MPEG1VIDEO) && _stricmp(m_pszInputFormat, "mpegvideo") != 0) { st->parser->flags |= PARSER_FLAG_NO_TIMESTAMP_MANGLING; } else if (st->codec->codec_id == CODEC_ID_VC1) { if (m_bVC1Correction) { |