global_header

issue362
Romain Vimont 6 years ago
parent 0e019f8ab8
commit 6a8d851090

@ -81,6 +81,7 @@ SDL_bool recorder_open(struct recorder *recorder, AVCodec *input_codec) {
ostream->codec->pix_fmt = AV_PIX_FMT_YUV420P;
ostream->codec->width = recorder->declared_frame_size.width;
ostream->codec->height = recorder->declared_frame_size.height;
ostream->codec->flags |= AV_CODEC_FLAG_GLOBAL_HEADER;
#endif
ostream->time_base = (AVRational) {1, 1000000}; // timestamps in us

Loading…
Cancel
Save