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
7520d977
Commit
7520d977
authored
Jun 29, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpeg: Move code out of else branch
Simplify the control flow and spare some vertical space.
parent
7798a59d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
134 additions
and
134 deletions
+134
-134
mjpegdec.c
libavcodec/mjpegdec.c
+134
-134
No files found.
libavcodec/mjpegdec.c
View file @
7520d977
...
@@ -1476,7 +1476,8 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
...
@@ -1476,7 +1476,8 @@ int ff_mjpeg_decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
av_log
(
avctx
,
AV_LOG_ERROR
,
"MJPEG packet 0x%x too big (0x%x/0x%x), corrupt data?
\n
"
,
av_log
(
avctx
,
AV_LOG_ERROR
,
"MJPEG packet 0x%x too big (0x%x/0x%x), corrupt data?
\n
"
,
start_code
,
unescaped_buf_size
,
buf_size
);
start_code
,
unescaped_buf_size
,
buf_size
);
return
AVERROR_INVALIDDATA
;
return
AVERROR_INVALIDDATA
;
}
else
{
}
av_log
(
avctx
,
AV_LOG_DEBUG
,
"marker=%x avail_size_in_buf=%td
\n
"
,
av_log
(
avctx
,
AV_LOG_DEBUG
,
"marker=%x avail_size_in_buf=%td
\n
"
,
start_code
,
buf_end
-
buf_ptr
);
start_code
,
buf_end
-
buf_ptr
);
...
@@ -1620,7 +1621,6 @@ not_the_end:
...
@@ -1620,7 +1621,6 @@ not_the_end:
"marker parser used %d bytes (%d bits)
\n
"
,
"marker parser used %d bytes (%d bits)
\n
"
,
(
get_bits_count
(
&
s
->
gb
)
+
7
)
/
8
,
get_bits_count
(
&
s
->
gb
));
(
get_bits_count
(
&
s
->
gb
)
+
7
)
/
8
,
get_bits_count
(
&
s
->
gb
));
}
}
}
if
(
s
->
got_picture
)
{
if
(
s
->
got_picture
)
{
av_log
(
avctx
,
AV_LOG_WARNING
,
"EOI missing, emulating
\n
"
);
av_log
(
avctx
,
AV_LOG_WARNING
,
"EOI missing, emulating
\n
"
);
goto
eoi_parser
;
goto
eoi_parser
;
...
...
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