diff --git a/libavutil/mem.h b/libavutil/mem.h
index db49c8d51571e777c4e728fefd2ac390bbf6de96..04f25720011762befc6aa24532cfc93a03e83a13 100644
--- a/libavutil/mem.h
+++ b/libavutil/mem.h
@@ -48,8 +48,8 @@ void *av_realloc(void *ptr, unsigned int size);
 
 /**
  * Free memory which has been allocated with av_malloc(z)() or av_realloc().
- * NOTE: ptr = NULL is explicitly allowed.
- * Note2: It is recommended that you use av_freep() instead.
+ * @note ptr = NULL is explicitly allowed.
+ * @note It is recommended that you use av_freep() instead.
  */
 void av_free(void *ptr);
 
@@ -65,7 +65,7 @@ char *av_strdup(const char *s);
 
 /**
  * Free memory and set the pointer to NULL.
- * @param ptr pointer to the pointer which should be freed.
+ * @param ptr Pointer to the pointer which should be freed.
  */
 void av_freep(void *ptr);