mpv/sub
wm4 0e72b0d5d3 draw_bmp: compensate for libswscale writing past image bounds
libswscale tends to overwrite the area between (w,y)-(0,y+1). It tries
to process multiple pixels at once, and if the memory past the last x
pixel is inside a SIMD operation, but still below the image stride, it
overwrites that data with black.

This happens with vo_x11 and 32 bit RGBA formats. The bug is visible as
black bar right of the subtitle bounding box. Fix by giving libswscale
more alignment. Then the "outside" pixels are inside, and are processed
normally instead of overwritten with black.

NOTE: we do not increase the alignment constant, because this is a
separate issue from pointer alignment. libavutil's av_malloc() wouldn't
actually satisfy the increased alignment either.
2012-10-24 21:56:33 +02:00
..
ass_mp.c Merge branch 'master' into osd_changes 2012-10-16 07:30:30 +02:00
ass_mp.h sub: remove logic for disabling hinting on scaled EOSD 2012-10-16 07:26:31 +02:00
dec_sub.c sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
dec_sub.h sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
draw_bmp.c draw_bmp: compensate for libswscale writing past image bounds 2012-10-24 21:56:33 +02:00
draw_bmp.h sub: add helper to draw sub-bitmaps into an image 2012-10-24 21:56:29 +02:00
find_sub.c
find_subfiles.c sub: silence output of subtitle search message 2012-07-30 01:45:07 +02:00
find_subfiles.h
img_convert.c sub: switch to premultiplied alpha 2012-10-16 07:26:32 +02:00
img_convert.h sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
osd_dummy.c sub: allow rendering OSD in ASS image format directly, simplify 2012-10-16 07:26:30 +02:00
osd_font.pfb osd: osd_font.h -> osd_font.pfb 2012-07-28 23:36:08 +02:00
osd_libass.c Merge branch 'master' into osd_changes 2012-10-16 07:30:30 +02:00
sd.h sub: cleanup: don't pass parameters via global variables 2012-10-16 07:26:32 +02:00
sd_ass.c Merge branch 'master' into osd_changes 2012-10-16 07:30:30 +02:00
sd_lavc.c sub: fix and simplify some change detection details 2012-10-16 07:26:45 +02:00
spudec.c sub: fix and simplify some change detection details 2012-10-16 07:26:45 +02:00
spudec.h sub: never decode subs to old OSD format 2012-10-16 07:26:32 +02:00
sub.c sub: fix and simplify some change detection details 2012-10-16 07:26:45 +02:00
sub.h sub: switch to premultiplied alpha 2012-10-16 07:26:32 +02:00
subassconvert.c subassconvert: order colour names alphabetically / better match W3 list 2012-08-03 03:47:09 +02:00
subassconvert.h
subreader.c sub: simplify code by always defining sub_cp 2012-08-03 06:53:10 +02:00
subreader.h Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.c Remove dead code 2012-08-01 17:07:35 +02:00
vobsub.h Remove dead code 2012-08-01 17:07:35 +02:00