Audio codec factories: Implementations return null on unsupported formats
Bug: none
Change-Id: I2db106b00b108b7f1682082bb1d58ef7a48569f9
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/182682
Reviewed-by: Alejandro Luebs <aluebs@webrtc.org>
Commit-Queue: Karl Wiberg <kwiberg@webrtc.org>
Cr-Commit-Position: refs/heads/master@{#32002}
diff --git a/api/audio_codecs/audio_decoder_factory.h b/api/audio_codecs/audio_decoder_factory.h
index c36a0e1..2811f67 100644
--- a/api/audio_codecs/audio_decoder_factory.h
+++ b/api/audio_codecs/audio_decoder_factory.h
@@ -38,6 +38,8 @@
// communication between the AudioEncoder and AudioDecoder instances, which is
// needed for some codecs with built-in bandwidth adaptation.)
//
+ // Returns null if the format isn't supported.
+ //
// Note: Implementations need to be robust against combinations other than
// one encoder, one decoder getting the same ID; such decoders must still
// work.