From: Sébastien Escudier Date: Wed, 18 Mar 2009 15:18:27 +0000 (+0100) Subject: Avoid useless operations X-Git-Tag: 1.0.0-pre2~327 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=93ac6328e86555165229240f94b4668dd41dd0fd;p=vlc Avoid useless operations Signed-off-by: Laurent Aimar --- diff --git a/modules/demux/mjpeg.c b/modules/demux/mjpeg.c index fa17147aa8..69d54db80d 100644 --- a/modules/demux/mjpeg.c +++ b/modules/demux/mjpeg.c @@ -147,9 +147,9 @@ static char* GetLine( demux_t *p_demux, int *p_pos ) { return NULL; } + p_buf = p_sys->p_peek + *p_pos; + i_size = p_sys->i_data_peeked - *p_pos; } - p_buf = p_sys->p_peek + *p_pos; - i_size = p_sys->i_data_peeked - *p_pos; } *p_pos += ( i + 1 ); if( i > 0 && '\r' == p_buf[i - 1] )