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
3c6d824b
Commit
3c6d824b
authored
Sep 13, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/bmp_parser: simplify
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
b11d1889
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
bmp_parser.c
libavcodec/bmp_parser.c
+3
-5
No files found.
libavcodec/bmp_parser.c
View file @
3c6d824b
...
...
@@ -46,6 +46,7 @@ static int bmp_parse(AVCodecParserContext *s, AVCodecContext *avctx,
*
poutbuf_size
=
0
;
restart:
if
(
bpc
->
pc
.
frame_start_found
<=
2
+
4
+
4
)
{
for
(;
i
<
buf_size
;
i
++
)
{
state
=
(
state
<<
8
)
|
buf
[
i
];
...
...
@@ -64,11 +65,8 @@ static int bmp_parse(AVCodecParserContext *s, AVCodecContext *avctx,
if
(
bpc
->
fsize
<=
ihsize
+
14
)
bpc
->
fsize
=
INT_MAX
/
2
;
bpc
->
pc
.
frame_start_found
++
;
if
(
bpc
->
fsize
>
buf_size
-
i
+
17
)
bpc
->
remaining_size
=
bpc
->
fsize
-
buf_size
+
i
-
17
;
else
next
=
bpc
->
fsize
+
i
-
17
;
break
;
bpc
->
remaining_size
=
bpc
->
fsize
+
i
-
17
;
goto
restart
;
}
else
if
(
bpc
->
pc
.
frame_start_found
)
bpc
->
pc
.
frame_start_found
++
;
}
...
...
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