summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-17 21:44:58 +0000
committerrtognimp <rtognimp@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-01-17 21:44:58 +0000
commitd97e2769db3d66f3abc3a3ecb307309161f80379 (patch)
tree4930dbf7ab7751578aa063edaebbfa3ced953560 /libmpcodecs
parent88b3945ba4654a77f93220052169f281e28125a5 (diff)
downloadmpv-d97e2769db3d66f3abc3a3ecb307309161f80379.tar.bz2
mpv-d97e2769db3d66f3abc3a3ecb307309161f80379.tar.xz
Remove duplicated code
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8973 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/vd_lcl.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/libmpcodecs/vd_lcl.c b/libmpcodecs/vd_lcl.c
index ded7642db7..834a77eb7c 100644
--- a/libmpcodecs/vd_lcl.c
+++ b/libmpcodecs/vd_lcl.c
@@ -1,7 +1,7 @@
/*
*
* LCL (LossLess Codec Library) Decoder for Mplayer
- * (c) 2002 Roberto Togni
+ * (c) 2002, 2003 Roberto Togni
*
* Fourcc: MSZH, ZLIB
*
@@ -488,21 +488,7 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags)
if ((hc->codec == CODEC_ZLIB) && (hc->flags & FLAG_PNGFILTER)) {
switch (hc->imgtype) {
case IMGTYPE_YUV111:
- for (row = 0; row < height; row++) {
- pixel_ptr = row * width * 3;
- yq = encoded[pixel_ptr++];
- uqvq = encoded[pixel_ptr++];
- uqvq+=(encoded[pixel_ptr++] << 8);
- for (col = 1; col < width; col++) {
- encoded[pixel_ptr] = yq -= encoded[pixel_ptr];
- uqvq -= (encoded[pixel_ptr+1] | (encoded[pixel_ptr+2]<<8));
- encoded[pixel_ptr+1] = (uqvq) & 0xff;
- encoded[pixel_ptr+2] = ((uqvq)>>8) & 0xff;
- pixel_ptr += 3;
- }
- }
- break;
- case IMGTYPE_RGB24: // No
+ case IMGTYPE_RGB24:
for (row = 0; row < height; row++) {
pixel_ptr = row * width * 3;
yq = encoded[pixel_ptr++];