Don't set AVFMT_TS_NONSTRICT. Crashes on ffmpeg 5. Fixes #3497
parent
85795c30ee
commit
494077eee7
|
@ -155,7 +155,10 @@ bool VideoStore::open() {
|
|||
oc->metadata = pmetadata;
|
||||
// Dirty hack to allow us to set flags. Needed for ffmpeg5
|
||||
out_format = const_cast<AVOutputFormat *>(oc->oformat);
|
||||
// ffmpeg 5 crashes if we do this
|
||||
#if !LIBAVFORMAT_VERSION_CHECK(59, 16,100, 9, 0)
|
||||
out_format->flags |= AVFMT_TS_NONSTRICT; // allow non increasing dts
|
||||
#endif
|
||||
|
||||
const AVCodec *video_out_codec = nullptr;
|
||||
|
||||
|
|
Loading…
Reference in New Issue