[SCM] libav/experimental: print codec parameters for audio too

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:57:30 UTC 2013


The following commit has been merged in the experimental branch:
commit acdc852017a3dc0482c75bb53eee51692d819c63
Author: Alex Beregszaszi <alex at rtfs.hu>
Date:   Fri Mar 9 11:20:57 2007 +0000

    print codec parameters for audio too
    
    Originally committed as revision 8303 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/ffserver.c b/ffserver.c
index 6a597d9..899e4b7 100644
--- a/ffserver.c
+++ b/ffserver.c
@@ -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";

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list