mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 15:47:33 +08:00
2023-10-24 21:24:55 CST W43D2
This commit is contained in:
@@ -73,10 +73,9 @@ func encode(ctx *ffmpeg.AVCodecContext, frame *ffmpeg.AVFrame, pkt *ffmpeg.AVPac
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
output.Write(ffmpeg.ByteSlice(pkt.GetData(), pkt.GetSize()))
|
||||
output.Write(unsafe.Slice(pkt.GetData(), pkt.GetSize()))
|
||||
ffmpeg.AvPacketUnref(pkt)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
|
Reference in New Issue
Block a user