summaryrefslogtreecommitdiff
path: root/src/lib/ffmpeg_decoder.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-10-25 00:36:47 +0100
committerCarl Hetherington <cth@carlh.net>2012-10-25 00:36:47 +0100
commitcb8d293cffc078ab49663725f9950a73f121bfe0 (patch)
treec2d9c3a3ea8f18f8e3ab4a331ac79847490b7b5e /src/lib/ffmpeg_decoder.cc
parente2463f3796bcdb55cba6e81a9bcede7041df7236 (diff)
Try running the video codec with threads=1 to see if we can avoid green stuff in the Aesthetica film.
Diffstat (limited to 'src/lib/ffmpeg_decoder.cc')
-rw-r--r--src/lib/ffmpeg_decoder.cc9
1 files changed, 8 insertions, 1 deletions
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");
}
}