general commit 26-02-2024 22:49

This commit is contained in:
harshabose
2025-02-26 22:49:35 +05:30
parent 1751c5d41f
commit 3b66c28f94

View File

@@ -3,7 +3,6 @@ package transcode
import (
"context"
"errors"
"fmt"
"time"
"github.com/asticode/go-astiav"
@@ -101,7 +100,7 @@ loop1:
return
case bitrate := <-encoder.bandwidthChan: // TODO: MIGHT NEED A MUTEX FOR THIS ONE CASE
encoder.encoderContext.SetBitRate(bitrate)
fmt.Printf("bitrate set: %d\n", bitrate)
// fmt.Printf("bitrate set: %d\n", bitrate)
case frame = <-encoder.filter.WaitForFrame():
if err = encoder.encoderContext.SendFrame(frame); err != nil {
encoder.filter.PutBack(frame)