[FFmpeg-devel] [PATCH] ffprobe: tweak error message in open_input_file()

Stefano Sabatini stefano.sabatini-lala
Sun Mar 13 21:25:16 CET 2011


Replace "codec (id=%d)" with "codec with id %d", slightly more
readable.
---
 ffprobe.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/ffprobe.c b/ffprobe.c
index 94b1d9b..d7362dd 100644
--- a/ffprobe.c
+++ b/ffprobe.c
@@ -285,7 +285,7 @@ static int open_input_file(AVFormatContext **fmt_ctx_ptr, const char *filename)
         AVCodec *codec;
 
         if (!(codec = avcodec_find_decoder(stream->codec->codec_id))) {
-            fprintf(stderr, "Unsupported codec (id=%d) for input stream %d\n",
+            fprintf(stderr, "Unsupported codec with id %d for input stream %d\n",
                     stream->codec->codec_id, stream->index);
         } else if (avcodec_open(stream->codec, codec) < 0) {
             fprintf(stderr, "Error while opening codec for input stream %d\n",
-- 
1.7.2.3




More information about the ffmpeg-devel mailing list