Assign the frame start time when we get a slow path frame

This commit is contained in:
Cameron Gutman 2014-11-13 22:17:02 -08:00
parent 022a08f5a1
commit ff5f50e3ec

View File

@ -360,6 +360,9 @@ public class VideoDepacketizer {
&& NAL.isAvcFrameStart(cachedSpecialDesc)
&& cachedSpecialDesc.data[cachedSpecialDesc.offset+cachedSpecialDesc.length] == 0x67)
{
// The slow path doesn't update the frame start time by itself
frameStartTime = System.currentTimeMillis();
// SPS and PPS prefix is padded between NALs, so we must decode it with the slow path
addInputDataSlow(packet, cachedReassemblyDesc);
}