]> git.sesse.net Git - vlc/commitdiff
dash: bandwidth is in bits per second
authorHugo Beauzée-Luyssen <beauze.h@gmail.com>
Thu, 26 Jan 2012 16:09:30 +0000 (17:09 +0100)
committerHugo Beauzée-Luyssen <beauze.h@gmail.com>
Thu, 2 Feb 2012 13:16:16 +0000 (14:16 +0100)
modules/stream_filter/dash/dash.cpp
modules/stream_filter/dash/mpd/Representation.h

index d44661c045045ca88d10a1247ac3742579b13940..fb2c0524935378690bc899b9faf520d632141b7b 100644 (file)
@@ -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;
         }
index 89845d20c1a4a07bd2e360b3bebf5fa082dfe5d5..15cd62d427ac7bb73fd2db91c881b4dfb163bee2 100644 (file)
@@ -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 );