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
b52f227e
Commit
b52f227e
authored
Jul 10, 2017
by
Steve Lhomme
Committed by
Jean-Baptiste Kempf
Jul 12, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux:mjpeg: init the ES to VLC_CODEC_MJPG directly
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
2bd08389
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+1
-2
No files found.
modules/demux/mjpeg.c
View file @
b52f227e
...
@@ -383,8 +383,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -383,8 +383,7 @@ static int Open( vlc_object_t * p_this )
p_sys
->
b_still
=
false
;
p_sys
->
b_still
=
false
;
p_sys
->
i_frame_length
=
f_fps
?
(
CLOCK_FREQ
/
f_fps
)
:
0
;
p_sys
->
i_frame_length
=
f_fps
?
(
CLOCK_FREQ
/
f_fps
)
:
0
;
es_format_Init
(
&
p_sys
->
fmt
,
VIDEO_ES
,
0
);
es_format_Init
(
&
p_sys
->
fmt
,
VIDEO_ES
,
VLC_CODEC_MJPG
);
p_sys
->
fmt
.
i_codec
=
VLC_CODEC_MJPG
;
p_sys
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
p_sys
->
fmt
);
p_sys
->
p_es
=
es_out_Add
(
p_demux
->
out
,
&
p_sys
->
fmt
);
return
VLC_SUCCESS
;
return
VLC_SUCCESS
;
...
...
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