File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
src/projects/transcoder/codec/decoder Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ bool DecoderAVC::InitCodec()
69
69
70
70
_context->time_base = ffmpeg::Conv::TimebaseToAVRational (GetTimebase ());
71
71
_context->thread_count = 2 ;
72
- _context->thread_type = FF_THREAD_SLICE ;
72
+ _context->thread_type = FF_THREAD_FRAME ;
73
73
74
74
// Set the number of b frames for compatibility with specific encoders.
75
75
auto bframes = GetRefTrack ()->HasBframes ()?1 :0 ;
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ bool DecoderHEVC::InitCodec()
69
69
70
70
_context->time_base = ffmpeg::Conv::TimebaseToAVRational (GetTimebase ());
71
71
_context->thread_count = 2 ;
72
- _context->thread_type = FF_THREAD_SLICE ;
72
+ _context->thread_type = FF_THREAD_FRAME ;
73
73
74
74
if (::avcodec_open2 (_context, _codec, nullptr ) < 0 )
75
75
{
You can’t perform that action at this time.
0 commit comments