Make VP8 DefaultTemporalLayers always report TL count even with no rate.

If at creation of a VP8 encoder there is not enough bitrate to enable a
given spatial layer - the configuration won't be updated to indicate
the correct temporal layer count. This means GetEncoderInfo() will
indicate lack of temporal layer support, which triggers issues with
rate allocation.

This CL fixes that by always setting an initial bitrate of 0bps.

(cherry picked from commit 486b0401c5cc0c2f83b77bcf555cf309342b4e27)

Bug: webrtc:12788, chromium:1219144
Change-Id: I10974e85446b58e597d2ca415eaf2550306ce986
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/220929
Commit-Queue: Erik Språng <sprang@webrtc.org>
Reviewed-by: Per Kjellander <perkj@webrtc.org>
Cr-Original-Commit-Position: refs/heads/master@{#34198}
Reviewed-on: https://webrtc-review.googlesource.com/c/src/+/222520
Cr-Commit-Position: refs/branch-heads/4515@{#9}
Cr-Branched-From: cf0ec283d2a6ef55f3e6f6c19ec1f282e355a42b-refs/heads/master@{#34046}
2 files changed
tree: 87e44d237a7e8751f0bd5bf8c153951a0dbf906c
  1. .clang-format
  2. .git-blame-ignore-revs
  3. .gitignore
  4. .gn
  5. .vpython
  6. AUTHORS
  7. BUILD.gn
  8. CODE_OF_CONDUCT.md
  9. DEPS
  10. DIR_METADATA
  11. ENG_REVIEW_OWNERS
  12. LICENSE
  13. OWNERS
  14. PATENTS
  15. PRESUBMIT.py
  16. README.chromium
  17. README.md
  18. WATCHLISTS
  19. api/
  20. audio/
  21. build_overrides/
  22. call/
  23. codereview.settings
  24. common_audio/
  25. common_video/
  26. data/
  27. docs/
  28. examples/
  29. g3doc.lua
  30. g3doc/
  31. license_template.txt
  32. logging/
  33. media/
  34. modules/
  35. native-api.md
  36. net/
  37. p2p/
  38. pc/
  39. presubmit_test.py
  40. presubmit_test_mocks.py
  41. pylintrc
  42. resources/
  43. rtc_base/
  44. rtc_tools/
  45. sdk/
  46. stats/
  47. system_wrappers/
  48. test/
  49. tools_webrtc/
  50. video/
  51. webrtc.gni
  52. webrtc_lib_link_test.cc
  53. whitespace.txt
README.md

WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.

Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.

The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.

Development

See here for instructions on how to get started developing with the native code.

Authoritative list of directories that contain the native API header files.

More info