Skip to content

Commit

Permalink
VideoPlayer: drop old workaround in ffmpeg demuxer
Browse files Browse the repository at this point in the history
  • Loading branch information
FernetMenta committed May 11, 2016
1 parent 1ddd114 commit 8bd4459
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions xbmc/cores/VideoPlayer/DVDDemuxers/DVDDemuxFFmpeg.cpp
Expand Up @@ -819,14 +819,6 @@ DemuxPacket* CDVDDemuxFFmpeg::Read()

if (pPacket)
{
// lavf sometimes bugs out and gives 0 dts/pts instead of no dts/pts
// since this could only happens on initial frame under normal
// circomstances, let's assume it is wrong all the time
if(m_pkt.pkt.dts == 0)
m_pkt.pkt.dts = AV_NOPTS_VALUE;
if(m_pkt.pkt.pts == 0)
m_pkt.pkt.pts = AV_NOPTS_VALUE;

if(m_bMatroska && stream->codec && stream->codec->codec_type == AVMEDIA_TYPE_VIDEO)
{ // matroska can store different timestamps
// for different formats, for native stored
Expand Down

0 comments on commit 8bd4459

Please sign in to comment.