Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Steve Lhomme
VLC
Commits
4efefb82
Commit
4efefb82
authored
Apr 13, 2004
by
gbazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* modules/packetizer/*: bug fix (use es_format_Copy() when necessary).
parent
8bfe4ed2
Changes
2
Hide 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