From f567925cf99db4088dc259c3ae8cd803983725a7 Mon Sep 17 00:00:00 2001 From: deepch Date: Tue, 25 Oct 2022 11:24:20 +0300 Subject: [PATCH] [RTMP] client / server full support h265 video codec --- format/flv/flv.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/format/flv/flv.go b/format/flv/flv.go index ea23264..a481414 100644 --- a/format/flv/flv.go +++ b/format/flv/flv.go @@ -228,12 +228,12 @@ func CodecDataToTag(stream av.CodecData) (_tag flvio.Tag, ok bool, err error) { ok = true _tag = tag case av.H265: - h264 := stream.(h264parser.CodecData) + h265c := stream.(h265parser.CodecData) tag := flvio.Tag{ Type: flvio.TAG_VIDEO, AVCPacketType: flvio.AVC_SEQHDR, CodecID: flvio.VIDEO_H265, - Data: h264.AVCDecoderConfRecordBytes(), + Data: h265c.AVCDecoderConfRecordBytes(), FrameType: flvio.FRAME_KEY, } ok = true