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_encoder_factory.h b/api/audio_codecs/audio_encoder_factory.h
index 48995a8..6128b1b 100644
--- a/api/audio_codecs/audio_encoder_factory.h
+++ b/api/audio_codecs/audio_encoder_factory.h
@@ -44,6 +44,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 encoders must still
// work.