[FFmpeg-cvslog] examples/muxing: apply misc fixes to log messages
Stefano Sabatini
git at videolan.org
Tue Sep 11 21:44:21 CEST 2012
ffmpeg | branch: master | Stefano Sabatini <stefasab at gmail.com> | Tue Sep 11 18:23:58 2012 +0200| [b3e2975ab3e116f13eeeaac730e3c6930bd69039] | committer: Stefano Sabatini
examples/muxing: apply misc fixes to log messages
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b3e2975ab3e116f13eeeaac730e3c6930bd69039
---
doc/examples/muxing.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/doc/examples/muxing.c b/doc/examples/muxing.c
index da96960..b81f198 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);
}
More information about the ffmpeg-cvslog
mailing list