Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
4d4f72b8
Commit
4d4f72b8
authored
Nov 02, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* forwardport the mjpeg fix and the dvbsub color fixes
parent
267b66c8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
7 deletions
+12
-7
modules/codec/dvbsub.c
modules/codec/dvbsub.c
+7
-5
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+5
-2
No files found.
modules/codec/dvbsub.c
View file @
4d4f72b8
...
...
@@ -419,8 +419,8 @@ static void default_clut_init( decoder_t *p_dec )
else
R
=
G
=
B
=
0x7F
;
p_sys
->
default_clut
.
c_2b
[
i
].
Y
=
RGB_TO_Y
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_2b
[
i
].
Cr
=
RGB_TO_U
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_2b
[
i
].
Cb
=
RGB_TO_V
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_2b
[
i
].
Cr
=
RGB_TO_U
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_2b
[
i
].
T
=
T
;
}
...
...
@@ -450,8 +450,8 @@ static void default_clut_init( decoder_t *p_dec )
}
p_sys
->
default_clut
.
c_4b
[
i
].
Y
=
RGB_TO_Y
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_4b
[
i
].
Cr
=
RGB_TO_
U
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_4b
[
i
].
Cb
=
RGB_TO_
V
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_4b
[
i
].
Cr
=
RGB_TO_
V
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_4b
[
i
].
Cb
=
RGB_TO_
U
(
R
,
G
,
B
);
p_sys
->
default_clut
.
c_4b
[
i
].
T
=
T
;
}
...
...
@@ -1405,8 +1405,8 @@ static subpicture_t *render( decoder_t *p_dec )
for
(
j
=
0
;
j
<
fmt
.
p_palette
->
i_entries
;
j
++
)
{
fmt
.
p_palette
->
palette
[
j
][
0
]
=
p_color
[
j
].
Y
;
fmt
.
p_palette
->
palette
[
j
][
1
]
=
p_color
[
j
].
C
r
;
fmt
.
p_palette
->
palette
[
j
][
2
]
=
p_color
[
j
].
C
b
;
fmt
.
p_palette
->
palette
[
j
][
1
]
=
p_color
[
j
].
C
b
;
/* U == Cb */
fmt
.
p_palette
->
palette
[
j
][
2
]
=
p_color
[
j
].
C
r
;
/* V == Cr */
fmt
.
p_palette
->
palette
[
j
][
3
]
=
0xff
-
p_color
[
j
].
T
;
}
...
...
@@ -1464,6 +1464,8 @@ static subpicture_t *render( decoder_t *p_dec )
p_spu
->
i_flags
=
p_sys
->
i_spu_position
;
p_spu
->
i_x
=
p_sys
->
i_spu_x
;
p_spu
->
i_y
=
p_sys
->
i_spu_y
;
p_spu
->
i_original_picture_width
=
720
;
p_spu
->
i_original_picture_height
=
576
;
return
p_spu
;
}
...
...
modules/demux/mjpeg.c
View file @
4d4f72b8
...
...
@@ -202,7 +202,9 @@ static vlc_bool_t CheckMimeHeader( demux_t *p_demux, int *p_header_size )
*
p_header_size
=
-
3
;
return
VLC_FALSE
;
}
if
(
NULL
==
p_sys
->
psz_separator
)
/* Read the separator and remember it if not yet stored */
if
(
p_sys
->
psz_separator
==
NULL
)
{
p_sys
->
psz_separator
=
psz_line
;
msg_Dbg
(
p_demux
,
"Multipart MIME detected, using separator: %s"
,
...
...
@@ -215,8 +217,9 @@ static vlc_bool_t CheckMimeHeader( demux_t *p_demux, int *p_header_size )
msg_Warn
(
p_demux
,
"separator %s does not match %s"
,
psz_line
,
p_sys
->
psz_separator
);
}
free
(
psz_line
);
}
free
(
psz_line
);
psz_line
=
GetLine
(
p_demux
,
&
i_pos
);
while
(
psz_line
&&
*
psz_line
)
{
...
...
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