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
4efefb82
Commit
4efefb82
authored
Apr 13, 2004
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/packetizer/*: bug fix (use es_format_Copy() when necessary).
parent
8bfe4ed2
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
8 deletions
+2
-8
modules/packetizer/copy.c
modules/packetizer/copy.c
+1
-7
modules/packetizer/mpeg4video.c
modules/packetizer/mpeg4video.c
+1
-1
No files found.
modules/packetizer/copy.c
View file @
4efefb82
...
...
@@ -75,13 +75,7 @@ static int Open( vlc_object_t *p_this )
p_dec
->
pf_packetize
=
Packetize
;
/* Create the output format */
memcpy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
,
sizeof
(
es_format_t
)
);
if
(
p_dec
->
fmt_in
.
i_extra
>
0
)
{
p_dec
->
fmt_out
.
p_extra
=
malloc
(
p_dec
->
fmt_in
.
i_extra
);
memcpy
(
p_dec
->
fmt_out
.
p_extra
,
p_dec
->
fmt_in
.
p_extra
,
p_dec
->
fmt_in
.
i_extra
);
}
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
);
/* Fix the value of the fourcc */
switch
(
p_dec
->
fmt_in
.
i_codec
)
...
...
modules/packetizer/mpeg4video.c
View file @
4efefb82
...
...
@@ -141,7 +141,7 @@ static int Open( vlc_object_t *p_this )
p_sys
->
b_frame
=
VLC_FALSE
;
/* Setup properties */
p_dec
->
fmt_out
=
p_dec
->
fmt_in
;
es_format_Copy
(
&
p_dec
->
fmt_out
,
&
p_dec
->
fmt_in
)
;
p_dec
->
fmt_out
.
i_codec
=
VLC_FOURCC
(
'm'
,
'p'
,
'4'
,
'v'
);
if
(
p_dec
->
fmt_in
.
i_extra
)
...
...
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