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

This commit is contained in:
boks1971 committed 2023-09-18 10:20:03 +05:30
commit 0aa5df2e00
1 file changed
+1 -1
+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
}