annotate spudec.h @ 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 36fd71db0d33
children 24d3dca4e813
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
560
28ae99036574 Separated dvdsub code to be able to work with it easier
lgb
parents:
diff changeset
1 #ifndef _MPLAYER_SPUDEC_H
28ae99036574 Separated dvdsub code to be able to work with it easier
lgb
parents:
diff changeset
2 #define _MPLAYER_SPUDEC_H
28ae99036574 Separated dvdsub code to be able to work with it easier
lgb
parents:
diff changeset
3
28ae99036574 Separated dvdsub code to be able to work with it easier
lgb
parents:
diff changeset
4 void spudec_process_control(unsigned char *, int, int*, int*);
561
36fd71db0d33 spudec_decode() moved from mplayer.c to spudec.c
arpi_esp
parents: 560
diff changeset
5 void spudec_decode(unsigned char *packet,int len);
560
28ae99036574 Separated dvdsub code to be able to work with it easier
lgb
parents:
diff changeset
6
28ae99036574 Separated dvdsub code to be able to work with it easier
lgb
parents:
diff changeset
7 #endif