[FFmpeg-devel] [PATCH 2/2] doc/examples/decode_video: add input file format information for usage

Steven Liu lq at chinaffmpeg.org
Wed Aug 21 14:34:49 EEST 2019


Signed-off-by: Steven Liu <lq at chinaffmpeg.org>
---
 doc/examples/decode_video.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/doc/examples/decode_video.c b/doc/examples/decode_video.c
index 5a9d43f689..169188a4b9 100644
--- a/doc/examples/decode_video.c
+++ b/doc/examples/decode_video.c
@@ -95,7 +95,8 @@ int main(int argc, char **argv)
     AVPacket *pkt;
 
     if (argc <= 2) {
-        fprintf(stderr, "Usage: %s <input file> <output file>\n", argv[0]);
+        fprintf(stderr, "Usage: %s <input file> <output file>\n"
+                "And check your input file is encoded by mpeg1video please.\n", argv[0]);
         exit(0);
     }
     filename    = argv[1];
-- 
2.17.2 (Apple Git-113)





More information about the ffmpeg-devel mailing list