Bug fix for mpeg.

This commit is contained in:
oioitff committed 2013-06-25 00:16:46 +08:00
1 parent 7bde93d534
commit b1cc94b9bf
4 files changed
+12 -9

No files matched your search

+2
View File
@@ -307,6 +307,8 @@ int MediaEngine::addStreamData(u8* buffer, int addSize) {
#ifdef USE_FFMPEG
if (!m_pFormatCtx) {
m_pdata->get_front(m_mpegheader, sizeof(m_mpegheader));
int mpegoffset = bswap32(*(int*)(m_mpegheader + 8));
m_pdata->pop_front(0, mpegoffset);
openContext();
}
#endif // USE_FFMPEG