update docs

This commit is contained in:
aler9
2023-08-25 16:26:40 +02:00
parent 95a0659515
commit 2a69c3a45c
3 changed files with 3 additions and 3 deletions

View File

@@ -76,7 +76,7 @@ func (d *h264Decoder) close() {
func (d *h264Decoder) decode(nalu []byte) (image.Image, error) {
nalu = append([]uint8{0x00, 0x00, 0x00, 0x01}, []uint8(nalu)...)
// send frame to decoder
// send NALU to decoder
var avPacket C.AVPacket
avPacket.data = (*C.uint8_t)(C.CBytes(nalu))
defer C.free(unsafe.Pointer(avPacket.data))

View File

@@ -76,7 +76,7 @@ func (d *h264Decoder) close() {
func (d *h264Decoder) decode(nalu []byte) (image.Image, error) {
nalu = append([]uint8{0x00, 0x00, 0x00, 0x01}, []uint8(nalu)...)
// send frame to decoder
// send NALU to decoder
var avPacket C.AVPacket
avPacket.data = (*C.uint8_t)(C.CBytes(nalu))
defer C.free(unsafe.Pointer(avPacket.data))

View File

@@ -3,7 +3,7 @@ package main
import "log"
// This example shows how to
// 1. create a server that allow to serve a stream.
// 1. create a server that serves a single stream.
// 2. create a client, read an existing stream from an external server or camera,
// pass the stream to the server in order to serve it.