Commit b3e2975a authored by Stefano Sabatini's avatar Stefano Sabatini

examples/muxing: apply misc fixes to log messages

parent 1d0048cf
...@@ -64,13 +64,13 @@ static AVStream *add_audio_stream(AVFormatContext *oc, AVCodec **codec, ...@@ -64,13 +64,13 @@ static AVStream *add_audio_stream(AVFormatContext *oc, AVCodec **codec,
/* find the audio encoder */ /* find the audio encoder */
*codec = avcodec_find_encoder(codec_id); *codec = avcodec_find_encoder(codec_id);
if (!(*codec)) { if (!(*codec)) {
fprintf(stderr, "codec not found\n"); fprintf(stderr, "Could not find codec\n");
exit(1); exit(1);
} }
st = avformat_new_stream(oc, *codec); st = avformat_new_stream(oc, *codec);
if (!st) { if (!st) {
fprintf(stderr, "Could not alloc stream\n"); fprintf(stderr, "Could not allocate stream\n");
exit(1); exit(1);
} }
st->id = 1; st->id = 1;
...@@ -243,7 +243,7 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st) ...@@ -243,7 +243,7 @@ static void open_video(AVFormatContext *oc, AVCodec *codec, AVStream *st)
/* open the codec */ /* open the codec */
if (avcodec_open2(c, codec, NULL) < 0) { if (avcodec_open2(c, codec, NULL) < 0) {
fprintf(stderr, "could not open codec\n"); fprintf(stderr, "Could not open codec\n");
exit(1); exit(1);
} }
...@@ -330,7 +330,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st) ...@@ -330,7 +330,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
sws_flags, NULL, NULL, NULL); sws_flags, NULL, NULL, NULL);
if (!sws_ctx) { if (!sws_ctx) {
fprintf(stderr, fprintf(stderr,
"Cannot initialize the conversion context\n"); "Could not initialize the conversion context\n");
exit(1); exit(1);
} }
} }
...@@ -366,7 +366,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st) ...@@ -366,7 +366,7 @@ static void write_video_frame(AVFormatContext *oc, AVStream *st)
ret = avcodec_encode_video2(c, &pkt, frame, &got_output); ret = avcodec_encode_video2(c, &pkt, frame, &got_output);
if (ret < 0) { if (ret < 0) {
fprintf(stderr, "error encoding frame\n"); fprintf(stderr, "Error encoding video frame\n");
exit(1); exit(1);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment