Files
ffmpeg-dev-go/avcodec_ac3_parser.go
2023-10-30 20:46:52 +08:00

17 lines
526 B
Go

// Copyright (c) 2023 QRTC. All rights reserved.
// Use of this source code is governed by a MIT
// license that can be found in the LICENSE file.
package ffmpeg
/*
#include <libavcodec/ac3_parser.h>
*/
import "C"
// AvAc3ParseHeader extracts the bitstream ID and the frame size from AC-3 data.
func AvAc3ParseHeader(buf *uint8, size uintptr, bitstreamID *uint8, frameSize *uint16) int32 {
return (int32)(C.av_ac3_parse_header((*C.uint8_t)(buf), (C.size_t)(size),
(*C.uint8_t)(bitstreamID), (*C.uint16_t)(frameSize)))
}