Commit b8d9f708 authored by Devin Heitmueller's avatar Devin Heitmueller Committed by Rafaël Carré

Fix corrupted rendering of EIA-608 captions

When we moved the code to use the legacy method *or* the new method,
we lost the functionality that actually initialized the memory allocated
for the entire subpicture region (including the part where captions
weren't being rendered.

This was most obvious when regression testing on OSX, where it
resulted in old captions continuing to appear on screen even
after being cleared, or garbage in the render buffer.

Add a line that effectively zeros out the buffer prior to use.
Signed-off-by: default avatarRafaël Carré <funman@videolan.org>
parent f570e4e9
...@@ -1180,6 +1180,7 @@ static inline int RenderAXYZ( filter_t *p_filter, ...@@ -1180,6 +1180,7 @@ static inline int RenderAXYZ( filter_t *p_filter,
if (p_region->b_renderbg) { if (p_region->b_renderbg) {
/* Render the background just under the text */ /* Render the background just under the text */
FillPicture( p_picture, 0x00, 0x00, 0x00, 0x00 );
RenderBackground(p_region, p_line_head, p_bbox, i_margin, p_picture, i_text_width, RenderBackground(p_region, p_line_head, p_bbox, i_margin, p_picture, i_text_width,
ExtractComponents, BlendPixel); ExtractComponents, BlendPixel);
} else { } else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment