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