mirror of
https://github.com/game-stop/veejay.git
synced 2025-12-14 11:50:02 +01:00
WIP
This commit is contained in:
@@ -617,6 +617,14 @@ static int v4l2_setup_avcodec_capture( v4l2info *v, int wid, int hei, int codec_
|
||||
v->c->flags |= CODEC_FLAG_TRUNCATED;
|
||||
|
||||
#if LIBAVCODEC_BUILD > 5400
|
||||
|
||||
int n_threads = avhelper_set_num_decoders();
|
||||
|
||||
if( n_threads > 0 ) {
|
||||
e->context->thread_count = n_threads;
|
||||
e->context->thread_type = FF_THREAD_FRAME;
|
||||
}
|
||||
|
||||
if( avcodec_open2( v->c, v->codec, NULL ) < 0 )
|
||||
#else
|
||||
if( avcodec_open( v->c, v->codec ) < 0 )
|
||||
|
||||
Reference in New Issue
Block a user