Add hint when making a FTR without FFEC/FFMC markers (#1804).
[dcpomatic.git] / src / lib / ffmpeg_file_encoder.cc
index d15bdabde676723922cba737d6c50839ab085805..9a3c434d4b0c311b61e65cc6b3899a2c36218510 100644 (file)
@@ -40,6 +40,9 @@ using boost::bind;
 using boost::weak_ptr;
 using boost::optional;
 using namespace dcpomatic;
+#if BOOST_VERSION >= 106100
+using namespace boost::placeholders;
+#endif
 
 int FFmpegFileEncoder::_video_stream_index = 0;
 int FFmpegFileEncoder::_audio_stream_index_base = 1;
@@ -77,6 +80,7 @@ public:
                }
 
                _stream->id = stream_index;
+               _stream->disposition |= AV_DISPOSITION_DEFAULT;
 DCPOMATIC_DISABLE_WARNINGS
                _stream->codec = _codec_context;
 DCPOMATIC_ENABLE_WARNINGS
@@ -417,8 +421,10 @@ DCPOMATIC_ENABLE_WARNINGS
 void
 FFmpegFileEncoder::video (shared_ptr<PlayerVideo> video, DCPTime time)
 {
+       /* All our output formats are video range at the moment */
        shared_ptr<Image> image = video->image (
                bind (&PlayerVideo::force, _1, _pixel_format),
+               VIDEO_RANGE_VIDEO,
                true,
                false
                );