Skip to content

Commit

Permalink
made buildable
Browse files Browse the repository at this point in the history
  • Loading branch information
aliakseis committed Jul 30, 2019
1 parent d718dcc commit e23e488
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions video/parserunnable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,8 +231,11 @@ void FFmpegDecoder::fixDuration()
if (m_duration <= 0)
{
m_duration = 0;
if ((m_formatContext->ctx_flags & AVFMTCTX_UNSEEKABLE)
|| !m_formatContext->pb || !(m_formatContext->pb->seekable & AVIO_SEEKABLE_NORMAL))
if (
#ifdef AVFMTCTX_UNSEEKABLE
(m_formatContext->ctx_flags & AVFMTCTX_UNSEEKABLE) ||
#endif
!m_formatContext->pb || !(m_formatContext->pb->seekable & AVIO_SEEKABLE_NORMAL))
{
return;
}
Expand Down

0 comments on commit e23e488

Please sign in to comment.