From cb8d293cffc078ab49663725f9950a73f121bfe0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 25 Oct 2012 00:36:47 +0100 Subject: Try running the video codec with threads=1 to see if we can avoid green stuff in the Aesthetica film. --- src/lib/ffmpeg_decoder.cc | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/lib/ffmpeg_decoder.cc') diff --git a/src/lib/ffmpeg_decoder.cc b/src/lib/ffmpeg_decoder.cc index 034fefeb2..ba875711a 100644 --- a/src/lib/ffmpeg_decoder.cc +++ b/src/lib/ffmpeg_decoder.cc @@ -155,8 +155,15 @@ FFmpegDecoder::setup_video () if (_video_codec == 0) { throw DecodeError ("could not find video decoder"); } + + /* I think this prevents problems with green hash on decodes and + "changing frame properties on the fly is not supported by all filters" + messages with some content. + */ + AVDictionary* opts = 0; + av_dict_set (&opts, "threads", "1", 0); - if (avcodec_open2 (_video_codec_context, _video_codec, 0) < 0) { + if (avcodec_open2 (_video_codec_context, _video_codec, &opts) < 0) { throw DecodeError ("could not open video decoder"); } } -- cgit v1.2.3