Definition at line 398 of file VideoAccessObject.h. References ILOG_ERROR, and mFormatCtx. Referenced by Impala::Core::Stream::Lavc::VideoAccessStrategy::DecodeNextFrame(), and Impala::Core::Stream::Lavc::StrategyIgnoringNativeIndex::ProcessPacket(). 00399 { 00400 const ByteIOContext* const b = 00401 #ifdef FFMPEG_52 00402 mFormatCtx->pb; 00403 #else 00404 &(mFormatCtx->pb); 00405 #endif 00406 Int64 pos = b->pos - (b->buf_end - b->buf_ptr); 00407 if (pos < 0) 00408 { 00409 ILOG_ERROR("Negative file position " << pos << 00410 " unexpected (should fit in UInt64)"); 00411 return 0; 00412 } 00413 return pos; 00414 }
|