Fixed transcoding example output format global header flag

This commit is contained in:
Quentin Renard
2024-11-17 14:31:55 +01:00
parent be9bba884e
commit a8a037c17e

View File

@@ -307,7 +307,7 @@ func openOutputFile() (err error) {
} }
// Update flags // Update flags
if s.decCodecContext.Flags().Has(astiav.CodecContextFlagGlobalHeader) { if outputFormatContext.OutputFormat().Flags().Has(astiav.IOFormatFlagGlobalheader) {
s.encCodecContext.SetFlags(s.encCodecContext.Flags().Add(astiav.CodecContextFlagGlobalHeader)) s.encCodecContext.SetFlags(s.encCodecContext.Flags().Add(astiav.CodecContextFlagGlobalHeader))
} }