diff --git a/encoder/libaom/libaom.go b/encoder/libaom/libaom.go index 058b5f7..0e0f27a 100644 --- a/encoder/libaom/libaom.go +++ b/encoder/libaom/libaom.go @@ -10,8 +10,8 @@ import "C" import ( "errors" "fmt" - "git.gammaspectra.live/S.O.N.G/Ignite/bitstream/obu" "git.gammaspectra.live/S.O.N.G/Ignite/frame" + "git.gammaspectra.live/S.O.N.G/Ignite/utilities/obuwriter" "io" "runtime" "strconv" @@ -20,7 +20,7 @@ import ( ) type Encoder struct { - w *obu.Writer + w *obuwriter.Writer cleaned atomic.Bool cfg C.aom_codec_enc_cfg_t codec C.aom_codec_ctx_t @@ -184,7 +184,7 @@ func NewEncoder(w io.Writer, properties frame.StreamProperties, settings map[str } var err error - if e.w, err = obu.NewWriter(w, properties.Width, properties.Height, 0x31305641, properties.FrameRate); err != nil { + if e.w, err = obuwriter.NewWriter(w, properties.Width, properties.Height, 0x31305641, properties.FrameRate); err != nil { return nil, err } diff --git a/bitstream/obu/writer.go b/utilities/obuwriter/writer.go similarity index 98% rename from bitstream/obu/writer.go rename to utilities/obuwriter/writer.go index 31972af..d744856 100644 --- a/bitstream/obu/writer.go +++ b/utilities/obuwriter/writer.go @@ -1,4 +1,4 @@ -package obu +package obuwriter import ( "encoding/binary"