mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-04 15:23:13 +08:00
2023-10-22 11:46:19 CST W43D0
This commit is contained in:
@@ -42,7 +42,7 @@ func decode(decCtx *ffmpeg.AVCodecContext, frame *ffmpeg.AVFrame, pkt *ffmpeg.AV
|
||||
|
||||
// the picture is allocated by the decoder. no need to free it
|
||||
fname := fmt.Sprintf("%s-%d", filename, decCtx.GetFrameNumber())
|
||||
pgmSave(frame.GetDataIdx(0), frame.GetLinesizeIdx(0), frame.GetWidth(), frame.GetHeight(), fname)
|
||||
pgmSave(frame.GetData()[0], frame.GetLinesize()[0], frame.GetWidth(), frame.GetHeight(), fname)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user