mux/avi.c: fixed a crash when trying to make audio only avi files.

Hopefully fixed a issue with the generated avi file in the same go
parent 6572dc73
...@@ -625,8 +625,8 @@ static int avi_HeaderAdd_avih( sout_mux_t *p_mux, ...@@ -625,8 +625,8 @@ static int avi_HeaderAdd_avih( sout_mux_t *p_mux,
if( p_sys->stream[i_stream].i_duration > 0 ) if( p_sys->stream[i_stream].i_duration > 0 )
{ {
i_maxbytespersec += i_maxbytespersec +=
p_sys->stream[p_sys->i_stream_video].i_totalsize / p_sys->stream[i_stream].i_totalsize /
p_sys->stream[p_sys->i_stream_video].i_duration; p_sys->stream[i_stream].i_duration;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment