diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h
index 60bbbcd6f26e8224f67e074b104dac3fff2942de..a71c12caca9f2f8f799c8b2be0ce3dd55aa55004 100644
--- a/libavcodec/avcodec.h
+++ b/libavcodec/avcodec.h
@@ -223,7 +223,7 @@ static const int Motion_Est_QTab[] = { ME_ZERO, ME_PHODS, ME_LOG,
      * - encoding: MUST be set by user\
      * - decoding: set by lavc\
      */\
-    long long int pts;\
+    int64_t pts;\
 \
     /**\
      * picture number in bitstream order.\