mirror of
https://github.com/langhuihui/monibuca.git
synced 2025-12-24 13:48:04 +08:00
fix: rtmp h265 ctx
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user