Skip to content

Commit

Permalink
silence signedness warnings after upstream fix
Browse files Browse the repository at this point in the history
the type of AV_NOPTS_VALUE has been fixed in
http://git.videolan.org/?p=ffmpeg.git;a=commitdiff;h=cb3591e69738c808d26ba15eb02414fedfcd91cc

note to self: suggest to use INT64_MIN upstream
  • Loading branch information
dekarl committed Apr 24, 2013
1 parent 4995830 commit 1512aca
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mythtv/programs/mythtranscode/mpeg2fix.cpp
Expand Up @@ -1375,10 +1375,10 @@ bool MPEG2fixup::FindStart()
if (pkt.pos != vFrame.first()->pkt.pos)
break;

if ((uint64_t)pkt.pts != AV_NOPTS_VALUE ||
(uint64_t)pkt.dts != AV_NOPTS_VALUE)
if (pkt.pts != AV_NOPTS_VALUE ||
pkt.dts != AV_NOPTS_VALUE)
{
if ((uint64_t)pkt.pts == AV_NOPTS_VALUE)
if (pkt.pts == AV_NOPTS_VALUE)
vFrame.first()->pkt.pts = pkt.dts;

LOG(VB_PROCESS, LOG_INFO,
Expand Down Expand Up @@ -1859,7 +1859,7 @@ void MPEG2fixup::InitialPTSFixup(MPEG2frame *curFrame, int64_t &origvPTS,
int64_t tmpPTS = diff2x33(curFrame->pkt.pts,
origvPTS / 300);

if ((uint64_t)curFrame->pkt.pts == AV_NOPTS_VALUE)
if (curFrame->pkt.pts == AV_NOPTS_VALUE)
{
LOG(VB_PROCESS, LOG_INFO,
QString("Found frame %1 with missing PTS at %2")
Expand Down Expand Up @@ -2097,7 +2097,7 @@ int MPEG2fixup::Start()
PTSdiscrep = 0;
break;
}
if (tmpPTSdiscrep != (int64_t)AV_NOPTS_VALUE &&
if (tmpPTSdiscrep != AV_NOPTS_VALUE &&
tmpPTSdiscrep != PTSdiscrep)
PTSdiscrep = tmpPTSdiscrep;
}
Expand Down

0 comments on commit 1512aca

Please sign in to comment.