diff --git a/libavcodec/ansi.c b/libavcodec/ansi.c
index e46879dd6bde166c9152a84f968c33db6ee77d65..32c7ce4ecd47ab8bf5402fa929cf327b8ed0daea 100644
--- a/libavcodec/ansi.c
+++ b/libavcodec/ansi.c
@@ -153,7 +153,7 @@ static void draw_char(AVCodecContext *avctx, int c)
 
 /**
  * Execute ANSI escape code
- * @param <0 error
+ * @return 0 on success, negative on error
  */
 static int execute_code(AVCodecContext * avctx, int c)
 {