mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 23:57:39 +08:00
2023-10-31 09:16:44 CST W44D2
This commit is contained in:
@@ -401,7 +401,7 @@ func getVideoFrame(ost *outputStream) *ffmpeg.AVFrame {
|
||||
return nil
|
||||
}
|
||||
|
||||
// when we pass a frame to the encoder, it may keep a reference to it
|
||||
// when we pass a frame to the encoder, it may keep a reference to it
|
||||
// internally; make sure we do not overwrite it here
|
||||
if ffmpeg.AvFrameMakeWritable(ost.frame) < 0 {
|
||||
panic("Make video frame writable failed")
|
||||
|
Reference in New Issue
Block a user