diff --git a/src/media/media_decoder.cpp b/src/media/media_decoder.cpp
index 7cba58abe63e6fdae3f611b29075520496f23178..cd1698a5048c41cd241e7977a6d5f49c0c7d6cd0 100644
--- a/src/media/media_decoder.cpp
+++ b/src/media/media_decoder.cpp
@@ -644,6 +644,7 @@ MediaDecoder::decode(AVPacket& packet)
 #endif
     auto frame = f->pointer();
     ret = avcodec_receive_frame(decoderCtx_, frame);
+    frame->time_base = decoderCtx_->time_base;
     if (resolutionChangedCallback_) {
         if (decoderCtx_->width != width_ or decoderCtx_->height != height_) {
             JAMI_DBG("Resolution changed from %dx%d to %dx%d",