Skip to content

Commit

Permalink
[RTMP] client / server full support h265 video codec
Browse files Browse the repository at this point in the history
  • Loading branch information
deepch committed Oct 25, 2022
1 parent 472775f commit f567925
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions format/flv/flv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f567925

Please sign in to comment.