2023-10-13 20:52:26 CST W41D5

This commit is contained in:
aggresss
2023-10-10 13:14:21 +08:00
parent 7fd11974a3
commit 3189856a17
80 changed files with 15354 additions and 0 deletions

16
avcodec_adts_parser.go Normal file
View File

@@ -0,0 +1,16 @@
package ffmpeg
/*
#include <libavcodec/adts_parser.h>
*/
import "C"
const (
AV_AAC_ADTS_HEADER_SIZE = C.AV_AAC_ADTS_HEADER_SIZE
)
// AvAdtsHeaderParse extracts the number of samples and frames from AAC data.
func AvAdtsHeaderParse(buf *uint8, sample *uint32, frame *uint8) int32 {
return (int32)(C.av_adts_header_parse((*C.uint8_t)(buf),
(*C.uint32_t)(sample), (*C.uint8_t)(frame)))
}