1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

print codec parameters for audio too

Originally committed as revision 8303 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Alex Beregszaszi 2007-03-09 11:20:57 +00:00
parent abfe5a4a75
commit acdc852017

View File

@ -1766,6 +1766,7 @@ static void compute_stats(HTTPContext *c)
switch(st->codec->codec_type) {
case CODEC_TYPE_AUDIO:
type = "audio";
snprintf(parameters, sizeof(parameters), "%d channel(s), %d Hz", st->codec->channels, st->codec->sample_rate);
break;
case CODEC_TYPE_VIDEO:
type = "video";