From cf52bd68b7e24b87cd68a03f8fad4c7d49d19582 Mon Sep 17 00:00:00 2001
From: Jan Poonthong <janpoonthong628@gmail.com>
Date: Wed, 25 Aug 2021 21:30:10 +0700
Subject: [PATCH] Include missing documentation for yasm in INSTALL.md

When I run the `./configure` I got this error:
    jan@jan-H110M-DS2:~/Downloads/ffmpeg$ ./configure
    nasm/yasm not found or too old. Use --disable-x86asm for a crippled build.

    If you think configure made a mistake, make sure you are using the latest
    version from Git.  If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.libera.chat.
    Include the log file "ffbuild/config.log" produced by configure as this will help
    solve the problem.

After installing `yasm` on to my machine the `./configure` worked.
It would be nice to have a documentation about things that user needed in order to run `./configure`.
---
 INSTALL.md | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/INSTALL.md b/INSTALL.md
index 3b220bc6ff..29f49b1195 100644
--- a/INSTALL.md
+++ b/INSTALL.md
@@ -1,15 +1,21 @@
 ## Installing FFmpeg
 
-1. Type `./configure` to create the configuration. A list of configure
+1. You will need `yasm` on your machine. Check your package manager(apt,
+yum, pacman, etc) for `yasm`.
+
+    Debian/Ubuntu based disto `sudo apt install yasm`.
+    For other disto might be differnt on the package manager.
+
+2. Type `./configure` to create the configuration. A list of configure
 options is printed by running `configure --help`.
 
     `configure` can be launched from a directory different from the FFmpeg
 sources to build the objects out of tree. To do this, use an absolute
 path when launching `configure`, e.g. `/ffmpegdir/ffmpeg/configure`.
 
-2. Then type `make` to build FFmpeg. GNU Make 3.81 or later is required.
+3. Then type `make` to build FFmpeg. GNU Make 3.81 or later is required.
 
-3. Type `make install` to install all binaries and libraries you built.
+4. Type `make install` to install all binaries and libraries you built.
 
 NOTICE
 ------
-- 
2.25.1

