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
472d88ba
Commit
472d88ba
authored
May 24, 2007
by
Damien Fouilleul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
- libmpeg2 codec: uses Y plane pitch rather then picture width as stride, hopefully closes #1184
parent
bd9935bf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
modules/codec/libmpeg2.c
modules/codec/libmpeg2.c
+4
-4
No files found.
modules/codec/libmpeg2.c
View file @
472d88ba
...
...
@@ -242,7 +242,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
p_pic
=
GetNewPicture
(
p_dec
,
buf
))
==
NULL
)
break
;
mpeg2_set_buf
(
p_sys
->
p_mpeg2dec
,
buf
,
p_pic
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
format
.
i_widt
h
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
p
[
Y_PLANE
].
i_pitc
h
);
}
p_sys
->
p_picture_to_destroy
=
p_pic
;
...
...
@@ -322,7 +322,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
mpeg2_set_buf
(
p_sys
->
p_mpeg2dec
,
buf
,
p_pic
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
format
.
i_widt
h
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
p
[
Y_PLANE
].
i_pitc
h
);
/* This picture will never go through display_picture. */
p_pic
->
date
=
0
;
...
...
@@ -440,7 +440,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
}
mpeg2_set_buf
(
p_sys
->
p_mpeg2dec
,
buf
,
p_pic
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
format
.
i_widt
h
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
p
[
Y_PLANE
].
i_pitc
h
);
}
}
break
;
...
...
@@ -522,7 +522,7 @@ static picture_t *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
if
(
(
p_pic
=
GetNewPicture
(
p_dec
,
buf
))
==
NULL
)
break
;
mpeg2_set_buf
(
p_sys
->
p_mpeg2dec
,
buf
,
p_pic
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
format
.
i_widt
h
);
mpeg2_stride
(
p_sys
->
p_mpeg2dec
,
p_pic
->
p
[
Y_PLANE
].
i_pitc
h
);
}
p_sys
->
p_picture_to_destroy
=
p_pic
;
...
...
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