mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-05 16:16:50 +08:00
Fixed transcoding example output format global header flag
This commit is contained in:
@@ -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))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user