]> git.sesse.net Git - vlc/commitdiff
mux/avi.c: fixed a crash when trying to make audio only avi files.
authorSigmund Augdal Helberg <sigmunau@videolan.org>
Wed, 1 Nov 2006 22:24:50 +0000 (22:24 +0000)
committerSigmund Augdal Helberg <sigmunau@videolan.org>
Wed, 1 Nov 2006 22:24:50 +0000 (22:24 +0000)
Hopefully fixed a issue with the generated avi file in the same go

modules/mux/avi.c

index a5328744ed5385772f0af37cce4cc51a3166586e..872dab5e58600385a0df58854f420dcd6c7bd26f 100644 (file)
@@ -625,8 +625,8 @@ static int avi_HeaderAdd_avih( sout_mux_t *p_mux,
         if( p_sys->stream[i_stream].i_duration > 0 )
         {
             i_maxbytespersec +=
-                p_sys->stream[p_sys->i_stream_video].i_totalsize /
-                p_sys->stream[p_sys->i_stream_video].i_duration;
+                p_sys->stream[i_stream].i_totalsize /
+                p_sys->stream[i_stream].i_duration;
         }
     }