Skip to content

Commit dddd89d

Browse files
committed
fix: fix nullable timespan
1 parent 81424cb commit dddd89d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

StreamingCaptureBot.Core/FfMpeg.Net/Codecs/DecoderBase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ public void Decode(AvPacketWrapper packet, ref AvFrameWrapper frame)
141141
// 解码正常
142142
logger.LogInformation("Decode frame success. type {type}, pts {pts}.",
143143
frame.PictureType.ToString(),
144-
frame.GetPresentationTimeSpan(ctx.TimeBase).ToString("c"));
144+
frame.GetPresentationTimeSpan(ctx.TimeBase)?.ToString("c") ?? "NO PTS");
145145
}
146146
}
147147

0 commit comments

Comments
 (0)