Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
ac81d6fa
Commit
ac81d6fa
authored
Apr 01, 2007
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* backport [19066]
Do not use visible_pitch when walking trough the lines
parent
6f197288
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/rawvideo.c
modules/codec/rawvideo.c
+4
-4
No files found.
modules/codec/rawvideo.c
View file @
ac81d6fa
...
@@ -257,7 +257,7 @@ static void FillPicture( decoder_t *p_dec, block_t *p_block, picture_t *p_pic )
...
@@ -257,7 +257,7 @@ static void FillPicture( decoder_t *p_dec, block_t *p_block, picture_t *p_pic )
for
(
i_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
for
(
i_plane
=
0
;
i_plane
<
p_pic
->
i_planes
;
i_plane
++
)
{
{
p_dst
=
p_pic
->
p
[
i_plane
].
p_pixels
;
p_dst
=
p_pic
->
p
[
i_plane
].
p_pixels
;
i_width
=
p_pic
->
p
[
i_plane
].
i_
visible_
pitch
;
i_width
=
p_pic
->
p
[
i_plane
].
i_pitch
;
if
(
p_sys
->
b_invert
)
if
(
p_sys
->
b_invert
)
p_src
+=
(
i_width
*
(
p_pic
->
p
[
i_plane
].
i_visible_lines
-
1
));
p_src
+=
(
i_width
*
(
p_pic
->
p
[
i_plane
].
i_visible_lines
-
1
));
...
@@ -266,7 +266,7 @@ static void FillPicture( decoder_t *p_dec, block_t *p_block, picture_t *p_pic )
...
@@ -266,7 +266,7 @@ static void FillPicture( decoder_t *p_dec, block_t *p_block, picture_t *p_pic )
{
{
p_dec
->
p_vlc
->
pf_memcpy
(
p_dst
,
p_src
,
i_width
);
p_dec
->
p_vlc
->
pf_memcpy
(
p_dst
,
p_src
,
i_width
);
p_src
+=
p_sys
->
b_invert
?
-
i_width
:
i_width
;
p_src
+=
p_sys
->
b_invert
?
-
i_width
:
i_width
;
p_dst
+=
p_pic
->
p
[
i_plane
].
i_pitc
h
;
p_dst
+=
i_widt
h
;
}
}
if
(
p_sys
->
b_invert
)
if
(
p_sys
->
b_invert
)
...
@@ -324,11 +324,11 @@ static block_t *SendFrame( decoder_t *p_dec, block_t *p_block )
...
@@ -324,11 +324,11 @@ static block_t *SendFrame( decoder_t *p_dec, block_t *p_block )
return
p_block
;
return
p_block
;
}
}
p_tmp
=
malloc
(
pic
.
p
[
0
].
i_
visible_
pitch
);
p_tmp
=
malloc
(
pic
.
p
[
0
].
i_pitch
);
p_pixels
=
p_block
->
p_buffer
;
p_pixels
=
p_block
->
p_buffer
;
for
(
i
=
0
;
i
<
pic
.
i_planes
;
i
++
)
for
(
i
=
0
;
i
<
pic
.
i_planes
;
i
++
)
{
{
int
i_pitch
=
pic
.
p
[
i
].
i_
visible_
pitch
;
int
i_pitch
=
pic
.
p
[
i
].
i_pitch
;
uint8_t
*
p_top
=
p_pixels
;
uint8_t
*
p_top
=
p_pixels
;
uint8_t
*
p_bottom
=
p_pixels
+
i_pitch
*
uint8_t
*
p_bottom
=
p_pixels
+
i_pitch
*
(
pic
.
p
[
i
].
i_visible_lines
-
1
);
(
pic
.
p
[
i
].
i_visible_lines
-
1
);
...
...
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