Changes between Version 3 and Version 4 of Ticket #941, comment 5
- Timestamp:
- Feb 4, 2012, 7:59:43 AM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #941, comment 5
v3 v4 4 4 static void check_index_entries ( 5 5 // Creates the index_entries prior to seeking if needbe. 6 cFFmpegPlayer* pPlayer, uint32_t streamIndex, int64_t timestamp , struct ogg_stream* pOggStream)6 cFFmpegPlayer* pPlayer, uint32_t streamIndex, int64_t timestamp) 7 7 { 8 8 AVFormatContext *pFmtCtx = pPlayer->pFormatCtx; … … 25 25 while (!pPlayer->bAllDone && !pPlayer->m_bThreadStopSeek) 26 26 { 27 if (pOggStream)28 pOggStream->keyframe_seek = 1;29 27 if (p_av_read_frame (pFmtCtx,&packet)) 30 28 break; … … 44 42 } 45 43 }}} 46 47 Note this code in the above just after the while statement:48 49 {{{50 if (pOggStream)51 pOggStream->keyframe_seek = 1;52 }}}53 54 This just speeds up the check_index_entries function a bit, but still there are going to faster ways to create the index_entries for ogg. I am not sure this is 100 percent accurate and I may remove this. av_read_frame will set this back to 0 via ogg_read_packet.55 44 56 45 I mentioned I had some other odd behavior with some ogg files. For my app this showed up as frames not displaying for some time after a seek. In other apps you will see other odd behavior like incomplete frames, audio out of sync, or just weirdness.