From 3278beb132c4abeab09a7bd61ec3e50820ab1e8b Mon Sep 17 00:00:00 2001 From: Hans-Kristian Arntzen Date: Mon, 27 Aug 2012 15:54:53 +0300 Subject: [PATCH] Add #ifdef for AVFMT_TS_NONSTRICT. Fixes build on recent Debian. --- record/ffemu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/record/ffemu.c b/record/ffemu.c index 92d9272c5e..1e0796a5ca 100644 --- a/record/ffemu.c +++ b/record/ffemu.c @@ -20,8 +20,6 @@ extern "C" { #endif #include #include -#include -#include #include #include #include @@ -300,10 +298,12 @@ static bool ffemu_init_muxer(ffemu_t *handle) handle->audio.codec->flags |= CODEC_FLAG_GLOBAL_HEADER; handle->muxer.astream = stream; +#ifdef AVFMT_TS_NONSTRICT // Avoids a warning at end about non-monotonically increasing DTS values. // It seems to be harmless to disable this. if (g_settings.video.h264_record) ctx->oformat->flags |= AVFMT_TS_NONSTRICT; +#endif av_dict_set(&ctx->metadata, "title", "RetroArch video dump", 0);