Skip to content

Commit

Permalink
Fixed transcoding example output format global header flag
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Nov 17, 2024
1 parent be9bba8 commit a8a037c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/transcoding/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ func openOutputFile() (err error) {
}

// 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))
}

Expand Down

0 comments on commit a8a037c

Please sign in to comment.