]> git.sesse.net Git - vlc/commitdiff
Video bitrate should be in bits/sec, not bytes/sec.
authorSteinar Gunderson <sgunderson@bigfoot.com>
Sat, 25 Sep 2010 12:38:25 +0000 (14:38 +0200)
committerSteinar Gunderson <sgunderson@bigfoot.com>
Sat, 25 Sep 2010 12:38:25 +0000 (14:38 +0200)
modules/access/sdi.cpp

index e867f534ed5d6b8f4c47d0872abd276f1a4583b1..12e71926faa1ed2e796e7eb3a85c8ad538cf2386 100644 (file)
@@ -475,7 +475,7 @@ static int Open( vlc_object_t *p_this )
     video_fmt.video.i_sar_den = 1;
     video_fmt.video.i_frame_rate = p_sys->i_fps_num;
     video_fmt.video.i_frame_rate_base = p_sys->i_fps_den;
-    video_fmt.i_bitrate = video_fmt.video.i_width * video_fmt.video.i_height * video_fmt.video.i_frame_rate * 2;
+    video_fmt.i_bitrate = video_fmt.video.i_width * video_fmt.video.i_height * video_fmt.video.i_frame_rate * 2 * 8;
     
     psz_tmp = var_CreateGetNonEmptyString( p_demux, "sdi-aspect-ratio" );
     if( psz_tmp )