Commit 9608608b authored by pross's avatar pross

Write sample format description within avcodec_string()


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@14485 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 427590dd
......@@ -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_size, AVCodecContext *enc, int encode)
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) {
......
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