Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
libmpeg2
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
libmpeg2
Commits
dd38813a
Commit
dd38813a
authored
May 18, 2000
by
David I. Lehn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Patch from Manfred Weihs <e9525662@student.tuwien.ac.at> to stop X11 driver
from segfaulting on non-32bit displays.
parent
aafa9696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
3 deletions
+18
-3
mpeg2dec-livid/display_x11.c
mpeg2dec-livid/display_x11.c
+18
-3
No files found.
mpeg2dec-livid/display_x11.c
View file @
dd38813a
...
...
@@ -454,9 +454,24 @@ display_slice(uint_8 *src[], uint_32 slice_num)
dst
=
ImageData
+
image_width
*
16
*
(
bpp
/
8
)
*
slice_num
;
yuv2rgb
(
dst
,
src
[
0
],
src
[
1
],
src
[
2
],
image_width
,
16
,
image_width
*
4
,
image_width
,
image_width
/
2
);
if
(
bpp
==
32
)
{
yuv2rgb
(
dst
,
src
[
0
],
src
[
1
],
src
[
2
],
image_width
,
16
,
image_width
*
4
,
image_width
,
image_width
/
2
);
}
else
if
(
bpp
==
24
)
{
yuv2rgb
(
dst
,
src
[
0
],
src
[
1
],
src
[
2
],
image_width
,
16
,
image_width
*
3
,
image_width
,
image_width
/
2
);
}
else
if
(
bpp
==
15
||
bpp
==
16
)
{
yuv2rgb
(
dst
,
src
[
0
],
src
[
1
],
src
[
2
],
image_width
,
16
,
image_width
*
2
,
image_width
,
image_width
/
2
);
}
return
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment