Skip to content

Commit 5d7ff30

Browse files
committed
Use safe method of setting the flags
1 parent feed935 commit 5d7ff30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/AvTranscoder/file/OutputFile.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ IOutputStream& OutputFile::addVideoStream(const VideoCodec& videoDesc)
4343
stream.codec->field_order = videoDesc.getAVCodecContext().field_order;
4444

4545
if (_formatContext.getAVOutputFormat().flags & AVFMT_GLOBALHEADER) {
46-
stream.codec->flags = CODEC_FLAG_GLOBAL_HEADER;
46+
stream.codec->flags |= CODEC_FLAG_GLOBAL_HEADER;
4747
}
4848

4949
// if the codec is experimental, allow it

0 commit comments

Comments
 (0)