Skip to content

Commit

Permalink
tidy code
Browse files Browse the repository at this point in the history
  • Loading branch information
3DRX committed Dec 10, 2024
1 parent 8970d5c commit c3a0457
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions receiver/peer_connection_channel/webm_saver.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import (
"unsafe"

sensor_msgs_msg "github.com/3DRX/webrtc-ros-bridge/rclgo_gen/sensor_msgs/msg"
"github.com/pion/interceptor/pkg/jitterbuffer"
"github.com/pion/rtp"
"github.com/pion/rtp/codecs"
"github.com/pion/webrtc/v4/pkg/media/samplebuilder"
Expand All @@ -23,7 +22,6 @@ type WebmSaver struct {
vp8Builder *samplebuilder.SampleBuilder
videoTimestamp time.Duration

h264JitterBuffer *jitterbuffer.JitterBuffer
lastVideoTimestamp uint32
codecCtx C.vpx_codec_ctx_t
codecCreated bool
Expand All @@ -32,10 +30,9 @@ type WebmSaver struct {

func newWebmSaver(imgChan chan<- types.Message) *WebmSaver {
return &WebmSaver{
vp8Builder: samplebuilder.New(200, &codecs.VP8Packet{}, 90000),
h264JitterBuffer: jitterbuffer.New(),
imgChan: imgChan,
codecCreated: false,
vp8Builder: samplebuilder.New(200, &codecs.VP8Packet{}, 90000),
imgChan: imgChan,
codecCreated: false,
}
}

Expand Down

0 comments on commit c3a0457

Please sign in to comment.