DescriptionImplement NullVideoDecoder to avoid crash on unsupported decoders.
There is a use case with external codec factories that only support
encoding but not decoding for a given type. This leads to a crash
due to null being registered as codec (after a DCHECK).
This CL adds a NullVideoDecoder that is used instead of the null to
not crash but log to LS_ERROR.
BUG=webrtc:5249
Committed: https://crrev.com/e03ac51aa16f9aa9902493d61fedacbe05734eba
Cr-Commit-Position: refs/heads/master@{#11475}
Patch Set 1 #Patch Set 2 : Removed DCHECK / NOTREACHED. #
Total comments: 4
Patch Set 3 : Feedback #
Messages
Total messages: 23 (8 generated)
|