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
2bf327df
Commit
2bf327df
authored
Jan 11, 2008
by
Ilkka Ollakka
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix previous commit
parent
0669b648
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
modules/packetizer/h264.c
modules/packetizer/h264.c
+4
-0
No files found.
modules/packetizer/h264.c
View file @
2bf327df
...
@@ -91,6 +91,7 @@ struct decoder_sys_t
...
@@ -91,6 +91,7 @@ struct decoder_sys_t
vlc_bool_t
b_sps
;
vlc_bool_t
b_sps
;
vlc_bool_t
b_pps
;
vlc_bool_t
b_pps
;
vlc_bool_t
b_header
;
/* avcC data */
/* avcC data */
int
i_avcC_length_size
;
int
i_avcC_length_size
;
...
@@ -184,6 +185,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -184,6 +185,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_pps
=
VLC_FALSE
;
p_sys
->
b_pps
=
VLC_FALSE
;
p_sys
->
p_sps
=
0
;
p_sys
->
p_sps
=
0
;
p_sys
->
p_pps
=
0
;
p_sys
->
p_pps
=
0
;
p_sys
->
b_header
=
VLC_FALSE
;
p_sys
->
slice
.
i_nal_type
=
-
1
;
p_sys
->
slice
.
i_nal_type
=
-
1
;
p_sys
->
slice
.
i_nal_ref_idc
=
-
1
;
p_sys
->
slice
.
i_nal_ref_idc
=
-
1
;
...
@@ -249,6 +251,7 @@ static int Open( vlc_object_t *p_this )
...
@@ -249,6 +251,7 @@ static int Open( vlc_object_t *p_this )
p_dec
->
fmt_out
.
p_extra
=
(
uint8_t
*
)
malloc
(
p_dec
->
fmt_out
.
i_extra
);
p_dec
->
fmt_out
.
p_extra
=
(
uint8_t
*
)
malloc
(
p_dec
->
fmt_out
.
i_extra
);
memcpy
(
(
uint8_t
*
)
p_dec
->
fmt_out
.
p_extra
,
p_sys
->
p_sps
->
p_buffer
,
p_sys
->
p_sps
->
i_buffer
);
memcpy
(
(
uint8_t
*
)
p_dec
->
fmt_out
.
p_extra
,
p_sys
->
p_sps
->
p_buffer
,
p_sys
->
p_sps
->
i_buffer
);
memcpy
(
(
uint8_t
*
)
p_dec
->
fmt_out
.
p_extra
+
p_sys
->
p_sps
->
i_buffer
,
p_sys
->
p_pps
->
p_buffer
,
p_sys
->
p_pps
->
i_buffer
);
memcpy
(
(
uint8_t
*
)
p_dec
->
fmt_out
.
p_extra
+
p_sys
->
p_sps
->
i_buffer
,
p_sys
->
p_pps
->
p_buffer
,
p_sys
->
p_pps
->
i_buffer
);
p_sys
->
b_header
=
VLC_TRUE
;
/* Set callback */
/* Set callback */
p_dec
->
pf_packetize
=
PacketizeAVC1
;
p_dec
->
pf_packetize
=
PacketizeAVC1
;
...
@@ -543,6 +546,7 @@ static block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
...
@@ -543,6 +546,7 @@ static block_t *ParseNALBlock( decoder_t *p_dec, block_t *p_frag )
p_sps->i_pts = p_sys->p_frame->i_pts; \
p_sps->i_pts = p_sys->p_frame->i_pts; \
block_ChainAppend( &p_sps, p_pps ); \
block_ChainAppend( &p_sps, p_pps ); \
block_ChainAppend( &p_sps, p_sys->p_frame ); \
block_ChainAppend( &p_sps, p_sys->p_frame ); \
p_sys->b_header = VLC_TRUE; \
p_pic = block_ChainGather( p_sps ); \
p_pic = block_ChainGather( p_sps ); \
} else { \
} else { \
p_pic = block_ChainGather( p_sys->p_frame ); \
p_pic = block_ChainGather( p_sys->p_frame ); \
...
...
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