fix: rtmp h265 ctx

This commit is contained in:
langhuihui
2025-04-10 16:51:30 +08:00
parent 254bd2d98e
commit 032855f2cc

View File

@@ -108,7 +108,7 @@ func (avcc *RTMPVideo) Parse(t *AVTrack) (err error) {
var ctx H265Ctx
ctx.Enhanced = enhanced
ctx.Record = cloneFrame.Buffers[0][reader.Offset():]
if t.ICodecCtx != nil && bytes.Equal(t.ICodecCtx.(*codec.H265Ctx).Record, ctx.Record) {
if t.ICodecCtx != nil && bytes.Equal(t.ICodecCtx.(*H265Ctx).Record, ctx.Record) {
return ErrSkip
}
if _, err = ctx.RecordInfo.Unmarshal(ctx.Record); err == nil {