mirror of
https://github.com/qrtc/ffmpeg-dev-go.git
synced 2025-10-05 23:57:39 +08:00
2023-10-22 11:46:19 CST W43D0
This commit is contained in:
@@ -100,7 +100,7 @@ func openOutputFile(filename string, inputCodecContext *ffmpeg.AVCodecContext) (
|
||||
outputFormatContext.SetPb(outputIOContext)
|
||||
|
||||
// Guess the desired container format based on the file extension.
|
||||
outputFormatContext.SetOformat(ffmpeg.AvGuessFormat("", filename, ""))
|
||||
outputFormatContext.SetOformat(ffmpeg.AvGuessFormat(ffmpeg.NIL, filename, ffmpeg.NIL))
|
||||
if outputFormatContext.GetOformat() == nil {
|
||||
fmt.Fprintf(os.Stderr, "Could not find output file format\n")
|
||||
goto cleanup
|
||||
|
Reference in New Issue
Block a user