[FFmpeg-cvslog] ffmpeg: more verbose error messages in case of audio encoding failure.
Michael Niedermayer
git at videolan.org
Tue Mar 27 03:09:43 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Mar 27 02:30:08 2012 +0200| [b62b9df7983217314188b3e0b1795c0e113b915a] | committer: Michael Niedermayer
ffmpeg: more verbose error messages in case of audio encoding failure.
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b62b9df7983217314188b3e0b1795c0e113b915a
---
ffmpeg.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ffmpeg.c b/ffmpeg.c
index eb535fe..f66828f 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1100,7 +1100,7 @@ static int encode_audio_frame(AVFormatContext *s, OutputStream *ost,
(enc->channels * av_get_bytes_per_sample(enc->sample_fmt));
if ((ret = avcodec_fill_audio_frame(frame, enc->channels, enc->sample_fmt,
buf, buf_size, 1)) < 0) {
- av_log(NULL, AV_LOG_FATAL, "Audio encoding failed\n");
+ av_log(NULL, AV_LOG_FATAL, "Audio encoding failed (avcodec_fill_audio_frame)\n");
exit_program(1);
}
@@ -1110,7 +1110,7 @@ static int encode_audio_frame(AVFormatContext *s, OutputStream *ost,
got_packet = 0;
if (avcodec_encode_audio2(enc, &pkt, frame, &got_packet) < 0) {
- av_log(NULL, AV_LOG_FATAL, "Audio encoding failed\n");
+ av_log(NULL, AV_LOG_FATAL, "Audio encoding failed (avcodec_encode_audio2)\n");
exit_program(1);
}
More information about the ffmpeg-cvslog
mailing list