diff options
author | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 16:52:14 +0000 |
---|---|---|
committer | Vitor Sessak <vitor1001@gmail.com> | 2008-05-25 16:52:14 +0000 |
commit | ac1c27b21c1ec55fc5b33469c3535c448514d0eb (patch) | |
tree | 860cbf904c75b6056c6fdbfce2dcc1259dfc0195 /libavcodec | |
parent | 4bf8f3029bc8bc1f01874a83b4d48b41ac128252 (diff) | |
download | ffmpeg-ac1c27b21c1ec55fc5b33469c3535c448514d0eb.tar.gz |
Minor simplification of dec1()
Originally committed as revision 13392 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r-- | libavcodec/ra144.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libavcodec/ra144.c b/libavcodec/ra144.c index 7af1bb0cb2..dbc01cfe2b 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); } |