diff --git a/doc/examples/demuxing.c b/doc/examples/demuxing.c
index 2aa00ce0c9b2b66e5a861e6b89c094b0455b3edf..3c9d4a1278b413cd68e70af963c6439e86238d99 100644
--- a/doc/examples/demuxing.c
+++ b/doc/examples/demuxing.c
@@ -209,7 +209,7 @@ int main (int argc, char **argv)
     /* register all formats and codecs */
     av_register_all();
 
-    /* open input file, and allocated format context */
+    /* open input file, and allocate format context */
     if (avformat_open_input(&fmt_ctx, src_filename, NULL, NULL) < 0) {
         fprintf(stderr, "Could not open source file %s\n", src_filename);
         exit(1);