svc: fix a case when target bandwidth = 0

This is similar to the fix in libvpx:
https://chromium-review.googlesource.com/c/webm/libvpx/+/4377298

Change-Id: Ie557db4f068a520e3d62b720001ff526d58a79d4
diff --git a/av1/encoder/svc_layercontext.c b/av1/encoder/svc_layercontext.c
index 649e996..a66fb3c 100644
--- a/av1/encoder/svc_layercontext.c
+++ b/av1/encoder/svc_layercontext.c
@@ -121,7 +121,9 @@
       RATE_CONTROL *const lrc = &lc->rc;
       PRIMARY_RATE_CONTROL *const lp_rc = &lc->p_rc;
       lc->spatial_layer_target_bandwidth = spatial_layer_target;
-      bitrate_alloc = (float)lc->target_bandwidth / target_bandwidth;
+      if (target_bandwidth != 0) {
+        bitrate_alloc = (float)lc->target_bandwidth / target_bandwidth;
+      }
       lp_rc->starting_buffer_level =
           (int64_t)(p_rc->starting_buffer_level * bitrate_alloc);
       lp_rc->optimal_buffer_level =