[MPlayer-cvslog] CVS: main spudec.c,1.44,1.45
Reimar Döffinger CVS
syncmail at mplayerhq.hu
Sat Jan 8 22:06:07 CET 2005
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs ad_ffmpeg.c, 1.16, 1.17 vd_ffmpeg.c, 1.139, 1.140 ve_lavc.c, 1.106, 1.107
- Next message: [MPlayer-cvslog] CVS: main/libaf af.c, 1.39, 1.40 af.h, 1.22, 1.23 af_channels.c, 1.12, 1.13 af_format.c, 1.23, 1.24 af_lavcresample.c, 1.7, 1.8 af_pan.c, 1.5, 1.6 af_resample.c, 1.23, 1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
CVS change done by Reimar Döffinger CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv13435
Modified Files:
spudec.c
Log Message:
Fix black line on right of subtitle with -spuaa 4 by setting alpha of
border pixels to 0 after scaling, not before.
Index: spudec.c
===================================================================
RCS file: /cvsroot/mplayer/main/spudec.c,v
retrieving revision 1.44
retrieving revision 1.45
diff -u -r1.44 -r1.45
--- spudec.c 18 Sep 2004 00:08:16 -0000 1.44
+++ spudec.c 8 Jan 2005 21:06:04 -0000 1.45
@@ -808,15 +808,6 @@
}
if (spu->scaled_image) {
unsigned int x, y;
- /* Kludge: draw_alpha needs width multiple of 8. */
- if (spu->scaled_width < spu->scaled_stride)
- for (y = 0; y < spu->scaled_height; ++y) {
- memset(spu->scaled_aimage + y * spu->scaled_stride + spu->scaled_width, 0,
- spu->scaled_stride - spu->scaled_width);
- /* FIXME: Why is this one needed? */
- memset(spu->scaled_image + y * spu->scaled_stride + spu->scaled_width, 0,
- spu->scaled_stride - spu->scaled_width);
- }
if (spu->scaled_width <= 1 || spu->scaled_height <= 1) {
goto nothing_to_do;
}
@@ -1061,6 +1052,12 @@
}
}
nothing_to_do:
+ /* Kludge: draw_alpha needs width multiple of 8. */
+ if (spu->scaled_width < spu->scaled_stride)
+ for (y = 0; y < spu->scaled_height; ++y) {
+ memset(spu->scaled_aimage + y * spu->scaled_stride + spu->scaled_width, 0,
+ spu->scaled_stride - spu->scaled_width);
+ }
spu->scaled_frame_width = dxs;
spu->scaled_frame_height = dys;
}
- Previous message: [MPlayer-cvslog] CVS: main/libmpcodecs ad_ffmpeg.c, 1.16, 1.17 vd_ffmpeg.c, 1.139, 1.140 ve_lavc.c, 1.106, 1.107
- Next message: [MPlayer-cvslog] CVS: main/libaf af.c, 1.39, 1.40 af.h, 1.22, 1.23 af_channels.c, 1.12, 1.13 af_format.c, 1.23, 1.24 af_lavcresample.c, 1.7, 1.8 af_pan.c, 1.5, 1.6 af_resample.c, 1.23, 1.24
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the MPlayer-cvslog
mailing list