Skip to content

Commit dfbad09

Browse files
Zaggy1024gmta
authored andcommitted
LibMedia: Set the time base in FFmpegVideoDecoder
Very minor change, which doesn't actually affect our output, since we were already inputting and outputting microseconds, but it can't hurt to give FFmpeg's decoder this information as well.
1 parent 523e7e2 commit dfbad09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Libraries/LibMedia/FFmpeg/FFmpegVideoDecoder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ DecoderErrorOr<NonnullOwnPtr<FFmpegVideoDecoder>> FFmpegVideoDecoder::try_create
6060
return DecoderError::format(DecoderErrorCategory::Memory, "Failed to allocate FFmpeg codec context for codec {}", codec_id);
6161

6262
codec_context->get_format = negotiate_output_format;
63-
63+
codec_context->time_base = { 1, 1'000'000 };
6464
codec_context->thread_count = static_cast<int>(min(Core::System::hardware_concurrency(), 4));
6565

6666
if (!codec_initialization_data.is_empty()) {

0 commit comments

Comments
 (0)