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
712e51bd
Commit
712e51bd
authored
Dec 10, 2009
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rawvideo: pictures are of type DIRECT_MEMORY
cleanup commit-id:
dfa08f13
parent
02e90c97
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
6 deletions
+6
-6
modules/codec/rawvideo.c
modules/codec/rawvideo.c
+6
-6
No files found.
modules/codec/rawvideo.c
View file @
712e51bd
...
...
@@ -134,7 +134,7 @@ static int OpenDecoder( vlc_object_t *p_this )
return
VLC_ENOMEM
;
/* Misc init */
p_dec
->
p_sys
->
b_packetizer
=
false
;
p_sys
->
b_invert
=
0
;
p_sys
->
b_invert
=
false
;
if
(
(
int
)
p_dec
->
fmt_in
.
video
.
i_height
<
0
)
{
...
...
@@ -213,7 +213,6 @@ static void *DecodeBlock( decoder_t *p_dec, block_t **pp_block )
p_block
=
*
pp_block
;
if
(
!
p_block
->
i_pts
&&
!
p_block
->
i_dts
&&
!
date_Get
(
&
p_sys
->
pts
)
)
{
/* We've just started the stream, wait for the first PTS. */
...
...
@@ -268,12 +267,13 @@ static void FillPicture( decoder_t *p_dec, block_t *p_block, picture_t *p_pic )
int
i_plane
;
decoder_sys_t
*
p_sys
=
p_dec
->
p_sys
;
if
(
p_pic
->
i_type
==
MEMORY
_PICTURE
)
if
(
p_pic
->
i_type
==
DIRECT
_PICTURE
)
{
free
(
p_pic
->
p_data_orig
);
p_pic
->
p_data
_orig
=
p_block
;
p_pic
->
p_data
=
p_pic
->
p_data_orig
=
p_block
->
p_buffer
;
p_pic
->
p_data
=
p_block
->
p_buffer
;
p_block
->
p_buffer
=
NULL
;
p_block
->
i_buffer
=
0
;
/* Fill the p_pixels field for each plane */
p_pic
->
p
[
0
].
p_pixels
=
p_pic
->
p_data
;
...
...
@@ -302,7 +302,6 @@ static void FillPicture( decoder_t *p_dec, block_t *p_block, picture_t *p_pic )
p_dst
+=
i_pitch
,
p_src
+=
i_visible_pitch
)
vlc_memcpy
(
p_dst
,
p_src
,
i_visible_pitch
);
}
block_Release
(
p_block
);
}
}
...
...
@@ -327,6 +326,7 @@ static picture_t *DecodeFrame( decoder_t *p_dec, block_t *p_block )
p_pic
->
date
=
date_Get
(
&
p_sys
->
pts
);
p_pic
->
b_progressive
=
true
;
block_Release
(
p_block
);
return
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