There is a bug in the AudioFrameConstructor that causes a failure in BufferedAudioFrameConstructor after repositioning the demuxer.
In the audio-video-codec samples, AudioFrameConstructor has a member variable (m_bHeaderParsed) that is set to false during Init().
When repositioning the demuxer, Reset() is called on all the frame constructors. However, because AudioFrameConstructor does not override Reset(), m_bHeaderParsed is not set back to false. If it was true prior to the repositioning, BufferedAudioFrameConstructor will never be able to retrieve another frame.
The fix is simple: Override Reset() in AudioFrameConstructor. In it, call the base Reset() and set m_bHeaderParsed = false.
Kind Regards,
Jere
链接已复制
4 回复数
Hi Jere,
Thanks for your problem you raised.This issue has been submitted to our internal development tracking
database for further investigation, we will inform you once a new update
becomes available.Here is a bug tracking number for your reference: 200209066.