Skip to content

Commit

Permalink
avformatdecoder.cpp: fix compilation of CloseContext
Browse files Browse the repository at this point in the history
FFmpeg constified its `AVInputFormat*`s to `const AVInputFormat*`
causing this to raise an -fpermissive error.
  • Loading branch information
ulmus-scott authored and bennettpeter committed Aug 25, 2022
1 parent e24af85 commit c815e30
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions mythtv/libs/libmythtv/decoders/avformatdecoder.cpp
Expand Up @@ -452,14 +452,10 @@ void AvFormatDecoder::CloseContext()
{
CloseCodecs();

AVInputFormat *fmt = m_ic->iformat;
m_ic->iformat->flags |= AVFMT_NOFILE;

av_free(m_ic->pb->buffer);
av_free(m_ic->pb);
avformat_close_input(&m_ic);
m_ic = nullptr;
fmt->flags &= ~AVFMT_NOFILE;
}
m_avcParser->Reset();
}
Expand Down

0 comments on commit c815e30

Please sign in to comment.