diff --git a/formats/format_h264.c b/formats/format_h264.c
index e214d7ed40e0c2b773706f5dcc317de0caeb0196..185b2680ca6bc0271e66a5ed43e40cec8624760b 100644
--- a/formats/format_h264.c
+++ b/formats/format_h264.c
@@ -221,7 +221,7 @@ static char *h264_getcomment(struct ast_filestream *s)
 	return NULL;
 }
 
-static int h264_seek(struct ast_filestream *fs, long sample_offset, int whence)
+static int h264_seek(struct ast_filestream *fs, off_t sample_offset, int whence)
 {
 	/* No way Jose */
 	return -1;
@@ -235,7 +235,7 @@ static int h264_trunc(struct ast_filestream *fs)
 	return 0;
 }
 
-static long h264_tell(struct ast_filestream *fs)
+static off_t h264_tell(struct ast_filestream *fs)
 {
 	/* XXX This is totally bogus XXX */
 	off_t offset;