summaryrefslogtreecommitdiffstats
path: root/libhb/stream.c
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2011-06-08 21:20:08 +0000
committerjstebbins <[email protected]>2011-06-08 21:20:08 +0000
commitc3c5052550c010732b5ca31acf563ea1e3349d88 (patch)
tree5bc011e81849ed9eb94e189de0a6312e99c3386d /libhb/stream.c
parent925b90ee9ee13afdc8efbf1bb3e46d564a67bb7e (diff)
libhb: Enable multi-threaded decode in ffmpeg
Enable both slice and frame based mutli-threaded decode in ffmpeg. Uses cpu_count/2 + 1 threads. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4034 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/stream.c')
-rw-r--r--libhb/stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libhb/stream.c b/libhb/stream.c
index 3467b1c97..48fbe68a7 100644
--- a/libhb/stream.c
+++ b/libhb/stream.c
@@ -3123,7 +3123,7 @@ static void ffmpeg_add_codec( hb_stream_t *stream, int stream_index )
context->error_concealment = FF_EC_GUESS_MVS|FF_EC_DEBLOCK;
AVCodec *codec = avcodec_find_decoder( context->codec_id );
hb_ff_set_sample_fmt( context, codec );
- hb_avcodec_open( context, codec );
+ hb_avcodec_open( context, codec, HB_FFMPEG_THREADS_AUTO );
}
// The ffmpeg stream reader / parser shares a lot of state with the