aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefano Sabatini <stefasab@gmail.com>2012-09-11 18:23:58 +0200
committerStefano Sabatini <stefasab@gmail.com>2012-09-11 21:43:27 +0200
commitb3e2975ab3e116f13eeeaac730e3c6930bd69039 (patch)
tree85602651b5f58b0663f398c5f1c78fd6caea25e7
parent1d0048cfe31eeaa23a57d58ea653cd8607ff241f (diff)
downloadffmpeg-b3e2975ab3e116f13eeeaac730e3c6930bd69039.tar.gz
examples/muxing: apply misc fixes to log messages
-rw-r--r--doc/examples/muxing.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index da969605cf..b81f198b06 100644
--- a/doc/examples/muxing.c
+++ b/doc/examples/muxing.c
@@ -64,13 +64,13 @@ static AVStream *add_audio_stream(AVFormatContext *oc, AVCodec **codec,
/* find the audio encoder */
*codec = avcodec_find_encoder(codec_id);
if (!(*codec)) {
- fprintf(stderr, "codec not found\n");
+ fprintf(stderr, "Could not find codec\n");
exit(1);
}
st = avformat_new_stream(oc, *codec);
if (!st) {
- fprintf(stderr, "Could not alloc stream\n");
+ fprintf(stderr, "Could not allocate stream\n");
exit(1);
}
st->id = 1;
@@ -243,7 +243,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 codec\n");
exit(1);
}
@@ -330,7 +330,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
sws_flags, NULL, NULL, NULL);
if (!sws_ctx) {
fprintf(stderr,
- "Cannot initialize the conversion context\n");
+ "Could not initialize the conversion context\n");
exit(1);
}
}
@@ -366,7 +366,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
ret = avcodec_encode_video2(c, &pkt, frame, &got_output);
if (ret < 0) {
- fprintf(stderr, "error encoding frame\n");
+ fprintf(stderr, "Error encoding video frame\n");
exit(1);
}