Descriptionppapi: VideoEncoder: prevent scheduling encoding multiple times
The ScheduleNextEncode() can be called at multiple stages in the
example depending on whether it needs to reconfigure the
MediaVideoStreamTrack. This can lead the example to encode at twice
30fps. At this speed we can exhaust the 33ms lifespan of video
buffers, leading to errors in the example plugins which can't retrieve
new frames to respect the 30fps framerate.
BUG=503153
TEST=run video_encoder example from NaCl SDK with VP8 codec and verify there are no error messages after 1 minute
Committed: https://crrev.com/cd74d5568a25c0a50ca8275b88a8d37bc066d275
Cr-Commit-Position: refs/heads/master@{#336850}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Do not clamp twice #
Total comments: 2
Messages
Total messages: 16 (5 generated)
|