[FFmpeg-cvslog] r14485 - trunk/libavcodec/utils.c
pross
subversion
Thu Jul 31 14:56:56 CEST 2008
Author: pross
Date: Thu Jul 31 14:56:56 2008
New Revision: 14485
Log:
Write sample format description within avcodec_string()
Modified:
trunk/libavcodec/utils.c
Modified: trunk/libavcodec/utils.c
==============================================================================
--- trunk/libavcodec/utils.c (original)
+++ trunk/libavcodec/utils.c Thu Jul 31 14:56:56 2008
@@ -31,6 +31,7 @@
#include "dsputil.h"
#include "opt.h"
#include "imgconvert.h"
+#include "audioconvert.h"
#include <stdarg.h>
#include <limits.h>
#include <float.h>
@@ -1148,6 +1149,10 @@ void avcodec_string(char *buf, int buf_s
enc->sample_rate,
channels_str);
}
+ if (enc->sample_fmt != SAMPLE_FMT_NONE) {
+ snprintf(buf + strlen(buf), buf_size - strlen(buf),
+ ", %s", avcodec_get_sample_fmt_name(enc->sample_fmt));
+ }
/* for PCM codecs, compute bitrate directly */
switch(enc->codec_id) {
More information about the ffmpeg-cvslog
mailing list