From ac1c27b21c1ec55fc5b33469c3535c448514d0eb Mon Sep 17 00:00:00 2001 From: Vitor Sessak <vitor1001@gmail.com> Date: Sun, 25 May 2008 16:52:14 +0000 Subject: [PATCH] Minor simplification of dec1() Originally committed as revision 13392 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavcodec/ra144.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 7af1bb0cb20..dbc01cfe2b6 100644 --- a/libavcodec/ra144.c +++ b/libavcodec/ra144.c @@ -234,12 +234,10 @@ static void do_output_subblock(Real144_internal *glob, const unsigned short *gs static int dec1(signed short *decsp, const int *data, const int *inp, int f) { - short *ptr,*end; - - end = (ptr = decsp) + 30; + int i; - while (ptr < end) - *(ptr++) = *(inp++); + for (i=0; i<30; i++) + *(decsp++) = *(inp++); return rms(data, f); } -- GitLab