Merge remote-tracking branch 'origin/master' into raja_fr

This commit is contained in:
boks1971
2023-09-18 10:20:03 +05:30
+1 -1
View File
@@ -540,7 +540,7 @@ func (w *WebRTCReceiver) getBufferLocked(layer int32) *buffer.Buffer {
layer = 0
}
if int(layer) >= len(w.buffers) {
if layer < 0 || int(layer) >= len(w.buffers) {
return nil
}