Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
db4b575c
Commit
db4b575c
authored
Apr 18, 2008
by
Antoine Cellerier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify.
parent
94007db4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
modules/demux/mjpeg.c
modules/demux/mjpeg.c
+11
-12
No files found.
modules/demux/mjpeg.c
View file @
db4b575c
...
...
@@ -351,7 +351,7 @@ static int Open( vlc_object_t * p_this )
p_sys
->
b_still
=
true
;
if
(
val
.
f_float
)
{
p_sys
->
i_still_length
=
1000000
.
0
/
val
.
f_float
;
p_sys
->
i_still_length
=
1000000
.
0
/
val
.
f_float
;
}
else
{
...
...
@@ -431,10 +431,9 @@ static int MimeDemux( demux_t *p_demux )
{
demux_sys_t
*
p_sys
=
p_demux
->
p_sys
;
int
i_size
,
i
;
bool
b_match
;
bool
b_done
;
b_match
=
CheckMimeHeader
(
p_demux
,
&
i_size
);
bool
b_match
=
CheckMimeHeader
(
p_demux
,
&
i_size
);
if
(
i_size
>
0
)
{
stream_Read
(
p_demux
->
s
,
NULL
,
i_size
);
...
...
@@ -454,6 +453,7 @@ static int MimeDemux( demux_t *p_demux )
msg_Warn
(
p_demux
,
"cannot peek data"
);
return
0
;
}
i
=
0
;
i_size
=
strlen
(
p_sys
->
psz_separator
)
+
2
;
if
(
p_sys
->
i_data_peeked
<
i_size
)
...
...
@@ -461,8 +461,8 @@ static int MimeDemux( demux_t *p_demux )
msg_Warn
(
p_demux
,
"data shortage"
);
return
0
;
}
b_done
=
false
;
while
(
!
b_done
)
for
(
;;
)
{
while
(
!
(
p_sys
->
p_peek
[
i
]
==
'-'
&&
p_sys
->
p_peek
[
i
+
1
]
==
'-'
)
)
{
...
...
@@ -481,16 +481,15 @@ static int MimeDemux( demux_t *p_demux )
}
}
}
if
(
!
strncmp
(
p_sys
->
psz_separator
,
(
char
*
)(
p_sys
->
p_peek
+
i
+
2
),
strlen
(
p_sys
->
psz_separator
)
)
)
{
b_done
=
true
;
}
else
{
i
++
;
i_size
++
;
break
;
}
i
++
;
i_size
++
;
}
if
(
!
b_match
)
...
...
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