Mercurial > mplayer.hg
annotate libao2/Makefile @ 1306:7ce37211e454
yuv2rgb_mmx crashes with ffdivx codec, when we play back avi files that have
a frame width that is not an exact multiple of 8.
Testcase: 405.avi (356x240). Playing on an MMX capable x86 system using the
x11 video-out driver results in a segfault.
The MMX routines convert image data in quantities of 8 pixels in each loop,
and the inner loop was not terminated in case there are only 1-7 pixels left,
producing too much RGB output.
For now, just ignore the last few pixels on each row, to avoid the segfaults.
(Gives a black vertical border on the right, if you play a video with
width%8 != 0) A possible future enhancement would be, to add a second loop
to convert the last width%8 pixels to RGB using a byte loop.
author | jkeil |
---|---|
date | Thu, 12 Jul 2001 15:23:26 +0000 |
parents | dfccdda074e5 |
children | b24661a9924e |
rev | line source |
---|---|
954 | 1 |
966
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
2 include config.mak |
954 | 3 |
1013
74d55f3c4680
libao->libao2 because of conflict with OMS's libao
arpi_esp
parents:
1010
diff
changeset
|
4 LIBNAME = libao2.a |
954 | 5 |
966
69b4f944ce08
Added support for sdl audio out (buggy pre-alpha).
atmosfear
parents:
954
diff
changeset
|
6 # TODO: moveout ao_sdl.c so it's only used when SDL is detected |
1107 | 7 SRCS=audio_out.c ao_null.c ao_pcm.c $(OPTIONAL_SRCS) |
954 | 8 OBJS=$(SRCS:.c=.o) |
9 | |
1234 | 10 CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(EXTRA_INC) |
954 | 11 |
12 .SUFFIXES: .c .o | |
13 | |
14 # .PHONY: all clean | |
15 | |
16 .c.o: | |
17 $(CC) -c $(CFLAGS) -o $@ $< | |
18 | |
1010 | 19 $(LIBNAME): $(OBJS) |
954 | 20 $(AR) r $(LIBNAME) $(OBJS) |
21 | |
22 all: $(LIBNAME) | |
23 | |
24 clean: | |
25 rm -f *.o *.a *~ | |
26 | |
27 distclean: | |
28 rm -f Makefile.bak *.o *.a *~ .depend | |
29 | |
30 dep: depend | |
31 | |
1010 | 32 depend: |
954 | 33 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend |
34 | |
35 # | |
36 # include dependency files if they exist | |
37 # | |
38 ifneq ($(wildcard .depend),) | |
39 include .depend | |
40 endif |