Commit 07be4a24ff for ffmpeg

commit 07be4a24ff5260699f72074cb09d84acb74d1ab8
Author: Kacper Michajłow <kasper93@gmail.com>
Date:   Thu Dec 3 17:41:51 2026 +0100

    avformat/dashdec: use the full stream time base when seeking

    Signed-off-by: Kacper Michajłow <kasper93@gmail.com>

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 54a8bb4bb3..b6a276388f 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -2616,10 +2616,9 @@ static int dash_read_seek(AVFormatContext *s, int stream_index, int64_t timestam
 {
     int ret = 0, i;
     DASHContext *c = s->priv_data;
-    int64_t seek_pos_msec = av_rescale_rnd(timestamp, 1000,
-                                           s->streams[stream_index]->time_base.den,
-                                           flags & AVSEEK_FLAG_BACKWARD ?
-                                           AV_ROUND_DOWN : AV_ROUND_UP);
+    int64_t seek_pos_msec = av_rescale_q_rnd(timestamp, s->streams[stream_index]->time_base,
+                                             (AVRational){ 1, 1000 }, flags & AVSEEK_FLAG_BACKWARD ?
+                                             AV_ROUND_DOWN : AV_ROUND_UP);
     if ((flags & AVSEEK_FLAG_BYTE) || c->is_live)
         return AVERROR(ENOSYS);