Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
9ac5beaa
Commit
9ac5beaa
authored
Dec 03, 2015
by
James Almer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/mpjpegdec: fix mixed declarations and code
parent
b46dcd52
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
mpjpegdec.c
libavformat/mpjpegdec.c
+6
-2
No files found.
libavformat/mpjpegdec.c
View file @
9ac5beaa
...
...
@@ -39,10 +39,12 @@ typedef struct MPJPEGDemuxContext {
static
void
trim_right
(
char
*
p
)
{
char
*
end
;
if
(
!
p
||
!*
p
)
return
;
char
*
end
=
p
+
strlen
(
p
);
end
=
p
+
strlen
(
p
);
while
(
end
>
p
&&
av_isspace
(
*
(
end
-
1
)))
*
(
--
end
)
=
'\0'
;
}
...
...
@@ -330,8 +332,10 @@ static int mpjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
while
((
ret
=
av_append_packet
(
s
->
pb
,
pkt
,
read_chunk
-
remaining
))
>=
0
)
{
/* scan the new data */
char
*
start
;
len
=
ret
+
remaining
;
char
*
start
=
pkt
->
data
+
pkt
->
size
-
len
;
start
=
pkt
->
data
+
pkt
->
size
-
len
;
do
{
if
(
!
memcmp
(
start
,
mpjpeg
->
searchstr
,
mpjpeg
->
searchstr_len
))
{
// got the boundary! rewind the stream
...
...
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