[Ffmpeg-cvslog] r8303 - trunk/ffserver.c

alex subversion
Fri Mar 9 12:20:58 CET 2007


Author: alex
Date: Fri Mar  9 12:20:57 2007
New Revision: 8303

Modified:
   trunk/ffserver.c

Log:
print codec parameters for audio too

Modified: trunk/ffserver.c
==============================================================================
--- trunk/ffserver.c	(original)
+++ trunk/ffserver.c	Fri Mar  9 12:20:57 2007
@@ -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";




More information about the ffmpeg-cvslog mailing list