defensive nil check (#4144)
This commit is contained in:
@@ -1439,6 +1439,10 @@ func (b *Buffer) seedKeyFrame(keyFrameSeederGeneration int32) {
|
|||||||
// ---------------------------------------------------------------
|
// ---------------------------------------------------------------
|
||||||
|
|
||||||
func ReleaseExtPacket(extPkt *ExtPacket) {
|
func ReleaseExtPacket(extPkt *ExtPacket) {
|
||||||
|
if extPkt == nil {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
ReleaseExtDependencyDescriptor(extPkt.DependencyDescriptor)
|
ReleaseExtDependencyDescriptor(extPkt.DependencyDescriptor)
|
||||||
|
|
||||||
*extPkt = ExtPacket{}
|
*extPkt = ExtPacket{}
|
||||||
|
|||||||
Reference in New Issue
Block a user