[FFmpeg-cvslog] examples/muxing: provide more information in case of avcodec_open2 failure

Stefano Sabatini git at videolan.org
Mon Oct 15 15:36:58 CEST 2012


ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Mon Oct 15 15:34:36 2012 +0200| [59e31aa2cafb1e7e15ff2242cded003c67a36c61] | committer: Stefano Sabatini

examples/muxing: provide more information in case of avcodec_open2 failure

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=59e31aa2cafb1e7e15ff2242cded003c67a36c61
---

 doc/examples/muxing.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index c6b0294..ed1f8e5 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -98,7 +98,7 @@ static void open_audio(AVFormatContext *oc, AVCodec *codec, AVStream *st)
 
     /* open it */
     if (avcodec_open2(c, codec, NULL) < 0) {
-        fprintf(stderr, "Could not open codec\n");
+        fprintf(stderr, "Could not open audio codec\n");
         exit(1);
     }
 
@@ -253,7 +253,7 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st)
 
     /* open the codec */
     if (avcodec_open2(c, codec, NULL) < 0) {
-        fprintf(stderr, "Could not open codec\n");
+        fprintf(stderr, "Could not open video codec\n");
         exit(1);
     }
 



More information about the ffmpeg-cvslog mailing list