diff --git a/doc/developer.texi b/doc/developer.texi
index e75f3b9403cd4b895f619ebe07bae27d2f0ad9c9..7210207f82f768ee5155958e4b586625e543bbab 100644
--- a/doc/developer.texi
+++ b/doc/developer.texi
@@ -190,7 +190,7 @@ set shiftwidth=4
 set softtabstop=4
 set cindent
 set cinoptions=(0
-" allow tabs in Makefiles
+" Allow tabs in Makefiles.
 autocmd FileType make set noexpandtab shiftwidth=8 softtabstop=8
 " Trailing whitespace and tabs are forbidden, so highlight them.
 highlight ForbiddenWhitespace ctermbg=red guibg=red
@@ -398,7 +398,7 @@ send a reminder by email. Your patch should eventually be dealt with.
     When adding new codec IDs, also add an entry to the codec descriptor
     list in @file{libavcodec/codec_desc.c}.
 @item
-    If it has a fourCC, did you add it to @file{libavformat/riff.c},
+    If it has a FourCC, did you add it to @file{libavformat/riff.c},
     even if it is only a decoder?
 @item
     Did you add a rule to compile the appropriate files in the Makefile?
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index 2dcdf56adbfd1f9bf133792f9092c52b2b98a326..5c2cf8b9b0f024df3ea4edcd016aaff93c1ffe0f 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -765,7 +765,7 @@ static int asf_read_header(AVFormatContext *s)
             }
         }
         if(avio_tell(pb) != gpos + gsize)
-            av_log(s, AV_LOG_DEBUG, "gpos mismatch our pos=%"PRIu64", end=%"PRIu64"\n", avio_tell(pb)-gpos, gsize);
+            av_log(s, AV_LOG_DEBUG, "gpos mismatch our pos=%"PRIu64", end=%"PRId64"\n", avio_tell(pb)-gpos, gsize);
         avio_seek(pb, gpos + gsize, SEEK_SET);
     }
     ff_get_guid(pb, &g);