summaryrefslogtreecommitdiff
path: root/doc/examples/muxing.c
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-10-15 15:34:36 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-10-15 15:35:50 +0200
commit59e31aa2cafb1e7e15ff2242cded003c67a36c61 (patch)
treee29cc4480ab96f5c9b81b1411748f1642118d9a9 /doc/examples/muxing.c
parent6133149e0c70f570291c9b685a0be38fde58efe1 (diff)
examples/muxing: provide more information in case of avcodec_open2 failure
Diffstat (limited to 'doc/examples/muxing.c')
-rw-r--r--doc/examples/muxing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index c6b0294b37..ed1f8e515d 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);
}