2013-02-15, 17:48
av_read_frame_flush is deprecated and the wrapper call to ff_read_frame_flush has been removed.
Since I don't understand the use of av_read_frame_flush in CDVDDemuxFFmpeg::Flush() it's quite hard to come up with a proposal for an alternative solution. My solution during the "quick 'n dirty" port was to create a temporary wrapper but how shall we solve this in the long term?
Old wrapper in libavformat/utils.c that has been removed:
reference to av_read_frame_flush from CDVDDemuxFFmpeg::Flush():
Since I don't understand the use of av_read_frame_flush in CDVDDemuxFFmpeg::Flush() it's quite hard to come up with a proposal for an alternative solution. My solution during the "quick 'n dirty" port was to create a temporary wrapper but how shall we solve this in the long term?
Old wrapper in libavformat/utils.c that has been removed:
Code:
void av_read_frame_flush(AVFormatContext *s)
{
ff_read_frame_flush(s);
}
reference to av_read_frame_flush from CDVDDemuxFFmpeg::Flush():
Code:
void CDVDDemuxFFmpeg::Flush()
{
g_demuxer.set(this);
// naughty usage of an internal ffmpeg function
if (m_pFormatContext)
m_dllAvFormat.av_read_frame_flush(m_pFormatContext);
m_iCurrentPts = DVD_NOPTS_VALUE;
}