Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fix h.264 frame/keyframe identification in the player.
If a NAL unit that determines a frame start appears as the last NAL unit in the packet, then the frame start is not identified until the start of the next packet. If this new packet has its own NAL unit that determines a frame start, and that NAL unit is not at the end of the packet, then only one frame start would be counted rather than two. This is fixed by returning the total number of frame starts, rather than a bool. In theory, the same problem could exist in the recorder, but it appears that the packets in the original recording may have some trailing NAL units that are stripped by the ffmpeg libraries when assembling the packet for the player, causing the situation not to occur.
- Loading branch information
Showing
2 changed files
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters