Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-1.1
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-1.1
Commits
610d3b49
Commit
610d3b49
authored
Feb 28, 2007
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rawvideo.c: Do not use visible_pitch when walking trough the lines. fixes #1021
parent
edf6862b
Changes
1
Show 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 @
610d3b49
...
...
@@ -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
++
)
{
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
)
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 )
{
p_dec
->
p_libvlc
->
pf_memcpy
(
p_dst
,
p_src
,
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
)
...
...
@@ -324,11 +324,11 @@ static block_t *SendFrame( decoder_t *p_dec, block_t *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
;
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_bottom
=
p_pixels
+
i_pitch
*
(
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