From: David S. <dsc...@us...> - 2001-10-28 23:54:07
|
Update of /cvsroot/gstreamer/gstreamer/plugins/mpeg1/mpegaudio In directory usw-pr-cvs1:/tmp/cvs-serv8133 Modified Files: gstmpegaudio.c Log Message: bitrate is expressed in kbits/sec in the mpegaudio code, but seems to be expressed in bits/sec when used as a parameter in gst. Fix to convert between the two. Index: gstmpegaudio.c =================================================================== RCS file: /cvsroot/gstreamer/gstreamer/plugins/mpeg1/mpegaudio/gstmpegaudio.c,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- gstmpegaudio.c 2001/08/21 20:16:47 1.19 +++ gstmpegaudio.c 2001/10/28 23:54:04 1.20 @@ -292,7 +292,7 @@ g_value_set_int (value, mpegaudio->encoder->model); break; case ARG_BITRATE: - g_value_set_int (value, mpegaudio->encoder->bitrate); + g_value_set_int (value, mpegaudio->encoder->bitrate * 1000); break; case ARG_EMPHASIS: g_value_set_int (value, mpegaudio->encoder->info.emphasis); @@ -323,7 +323,7 @@ mpegaudio->encoder->model = g_value_get_int (value); break; case ARG_BITRATE: - mpegaudio->encoder->bitrate = g_value_get_int (value); + mpegaudio->encoder->bitrate = g_value_get_int (value) / 1000; break; case ARG_EMPHASIS: mpegaudio->encoder->info.emphasis = g_value_get_int (value); |