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
053b0208
Commit
053b0208
authored
Jul 25, 2008
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed dead code + added a check against allocation errors.
parent
1dcdb30f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
modules/packetizer/h264.c
modules/packetizer/h264.c
+3
-4
No files found.
modules/packetizer/h264.c
View file @
053b0208
...
@@ -232,8 +232,6 @@ static int Open( vlc_object_t *p_this )
...
@@ -232,8 +232,6 @@ static int Open( vlc_object_t *p_this )
block_t
*
p_sps
=
nal_get_annexeb
(
p_dec
,
p
,
i_length
);
block_t
*
p_sps
=
nal_get_annexeb
(
p_dec
,
p
,
i_length
);
if
(
!
p_sps
)
if
(
!
p_sps
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
p_sys
->
p_sps
=
block_Duplicate
(
p_sps
);
p_sps
->
i_pts
=
p_sps
->
i_dts
=
mdate
();
ParseNALBlock
(
p_dec
,
p_sps
);
ParseNALBlock
(
p_dec
,
p_sps
);
p
+=
i_length
;
p
+=
i_length
;
}
}
...
@@ -250,14 +248,15 @@ static int Open( vlc_object_t *p_this )
...
@@ -250,14 +248,15 @@ static int Open( vlc_object_t *p_this )
block_t
*
p_pps
=
nal_get_annexeb
(
p_dec
,
p
,
i_length
);
block_t
*
p_pps
=
nal_get_annexeb
(
p_dec
,
p
,
i_length
);
if
(
!
p_pps
)
if
(
!
p_pps
)
return
VLC_EGENERIC
;
return
VLC_EGENERIC
;
p_sys
->
p_pps
=
block_Duplicate
(
p_pps
);
p_pps
->
i_pts
=
p_pps
->
i_dts
=
mdate
();
ParseNALBlock
(
p_dec
,
p_pps
);
ParseNALBlock
(
p_dec
,
p_pps
);
p
+=
i_length
;
p
+=
i_length
;
}
}
msg_Dbg
(
p_dec
,
"avcC length size=%d, sps=%d, pps=%d"
,
msg_Dbg
(
p_dec
,
"avcC length size=%d, sps=%d, pps=%d"
,
p_sys
->
i_avcC_length_size
,
i_sps
,
i_pps
);
p_sys
->
i_avcC_length_size
,
i_sps
,
i_pps
);
if
(
!
p_sys
->
p_sps
||
p_sys
->
p_pps
)
return
VLC_EGENERIC
;
/* FIXME: FFMPEG isn't happy at all if you leave this */
/* FIXME: FFMPEG isn't happy at all if you leave this */
if
(
p_dec
->
fmt_out
.
i_extra
>
0
)
free
(
p_dec
->
fmt_out
.
p_extra
);
if
(
p_dec
->
fmt_out
.
i_extra
>
0
)
free
(
p_dec
->
fmt_out
.
p_extra
);
p_dec
->
fmt_out
.
i_extra
=
0
;
p_dec
->
fmt_out
.
i_extra
=
0
;
...
...
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