Harald Alvestrand b7bc1aa180 Make MapCodecs return error rather than empty list when failing.
The video engine MapCodecs function returned an empty list of
codecs when errors occured, which caused crashes downstream.

This created issues with diagnosing errors caused by PT redesign.

Bug: webrtc:360058654
Change-Id: I0b5bdc9f95814ac4cfb99f749075990c3077e7a6
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/370420
Reviewed-by: Henrik Boström <hbos@webrtc.org>
Commit-Queue: Harald Alvestrand <hta@webrtc.org>
Cr-Commit-Position: refs/heads/main@{#43499}
2024-12-05 10:58:40 +00:00
..