Skip to content

Commit eb6a8df

Browse files
committed
Changed H.264/H.265 decoding thread type
1 parent b53080a commit eb6a8df

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/projects/transcoder/codec/decoder/decoder_avc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool DecoderAVC::InitCodec()
6969

7070
_context->time_base = ffmpeg::Conv::TimebaseToAVRational(GetTimebase());
7171
_context->thread_count = 2;
72-
_context->thread_type = FF_THREAD_SLICE;
72+
_context->thread_type = FF_THREAD_FRAME;
7373

7474
// Set the number of b frames for compatibility with specific encoders.
7575
auto bframes = GetRefTrack()->HasBframes()?1:0;

src/projects/transcoder/codec/decoder/decoder_hevc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ bool DecoderHEVC::InitCodec()
6969

7070
_context->time_base = ffmpeg::Conv::TimebaseToAVRational(GetTimebase());
7171
_context->thread_count = 2;
72-
_context->thread_type = FF_THREAD_SLICE;
72+
_context->thread_type = FF_THREAD_FRAME;
7373

7474
if (::avcodec_open2(_context, _codec, nullptr) < 0)
7575
{

0 commit comments

Comments
 (0)