[Jahshaka-cvs] openlibraries/src/openmedialib/plugins/avformat avformat_plugin.cpp, 1.44, 1.45
Status: Beta
Brought to you by:
jahshaka
From: Charles Y. <lil...@us...> - 2006-10-04 02:45:05
|
Update of /cvsroot/openlibraries/openlibraries/src/openmedialib/plugins/avformat In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22234/src/openmedialib/plugins/avformat Modified Files: avformat_plugin.cpp Log Message: + Comment correction Index: avformat_plugin.cpp =================================================================== RCS file: /cvsroot/openlibraries/openlibraries/src/openmedialib/plugins/avformat/avformat_plugin.cpp,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- avformat_plugin.cpp 19 Sep 2006 07:34:18 -0000 1.44 +++ avformat_plugin.cpp 2 Oct 2006 06:04:57 -0000 1.45 @@ -1176,11 +1176,12 @@ position = last_position_ + 1; last_position_ = position; - // Small optimisation - abandon packet now if we can (ie: we don't have to decode - // and no image is requested for this frame) + // Correct for stream offset if ( ( uint64_t )context_->start_time != AV_NOPTS_VALUE ) position -= int( context_->start_time * input_type::fps( ) / AV_TIME_BASE ); + // Small optimisation - abandon packet now if we can (ie: we don't have to decode + // and no image is requested for this frame) if ( !must_decode_ && ( get_process_flags( ) & ml::process_image ) == 0 ) { got_picture = true; |