[vlc-commits] dash: bandwidth is in bits per second

Hugo Beauzée-Luyssen git at videolan.org
Thu Feb 2 14:40:24 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Thu Jan 26 17:09:30 2012 +0100| [7a14bb56ac0d47de9a9fc0ac02cdec074461756e] | committer: Hugo Beauzée-Luyssen

dash: bandwidth is in bits per second

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a14bb56ac0d47de9a9fc0ac02cdec074461756e
---

 modules/stream_filter/dash/dash.cpp             |    2 +-
 modules/stream_filter/dash/mpd/Representation.h |    4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/modules/stream_filter/dash/dash.cpp b/modules/stream_filter/dash/dash.cpp
index d44661c..fb2c052 100644
--- a/modules/stream_filter/dash/dash.cpp
+++ b/modules/stream_filter/dash/dash.cpp
@@ -209,7 +209,7 @@ static int  Control         (stream_t *p_stream, int i_query, va_list args)
                 if ( rep == NULL )
                     *res = 0;
                 else
-                    *res = p_sys->p_mpd->getDuration() * rep->getBandwidth();
+                    *res = p_sys->p_mpd->getDuration() * rep->getBandwidth() / 8;
             }
             break;
         }
diff --git a/modules/stream_filter/dash/mpd/Representation.h b/modules/stream_filter/dash/mpd/Representation.h
index 89845d2..15cd62d 100644
--- a/modules/stream_filter/dash/mpd/Representation.h
+++ b/modules/stream_filter/dash/mpd/Representation.h
@@ -49,9 +49,9 @@ namespace dash
                 void                setId                   ( const std::string &id );
                 /*
                  *  @return The bitrate required for this representation
-                 *          in Bytes per seconds.
+                 *          in bits per seconds.
                  *          Will be a valid value, as the parser refuses Representation
-                 *          without bandwith.
+                 *          without bandwidth.
                  */
                 int                 getBandwidth            () const;
                 void                setBandwidth            ( int bandwidth );



More information about the vlc-commits mailing list