diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c
index 134f402d768404d07066ab0e5820169a8a29edbb..6ebc415f956a221b4c3f7d314010760ab23d463e 100644
--- a/libavformat/flvdec.c
+++ b/libavformat/flvdec.c
@@ -280,7 +280,8 @@ static int flv_read_header(AVFormatContext *s,
 
 static int flv_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
-    int ret, i, type, size, pts, flags, is_audio, next, pos;
+    int ret, i, type, size, flags, is_audio, next, pos;
+    unsigned pts;
     AVStream *st = NULL;
 
  for(;;){