diff --git a/libavformat/mov.c b/libavformat/mov.c
index b4d924edb1c07c488883ca5da03e47d6ebaa865e..0182df64f73972815a8a2d5bdd266df889c39c17 100644
--- a/libavformat/mov.c
+++ b/libavformat/mov.c
@@ -1396,7 +1396,7 @@ static int mov_read_ctts(MOVContext *c, ByteIOContext *pb, MOVAtom atom)
             sc->dts_shift = FFMAX(sc->dts_shift, -duration);
     }
 
-    dprintf(c->fc, "dts shift %d\n", sc->shift);
+    dprintf(c->fc, "dts shift %d\n", sc->dts_shift);
 
     return 0;
 }