Skip to content

Commit b40674d

Browse files
author
Clement Champetier
committed
OutputFile: updated how to set the codec 'flags' when addVideoStream
Because the flags attribute could have a value before this assignement.
1 parent 0c88502 commit b40674d

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)