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
050f2b3e
Commit
050f2b3e
authored
Jul 03, 2011
by
Mans Rullgard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mjpeg: remove pointless braces around block of code
Signed-off-by:
Mans Rullgard
<
mans@mansr.com
>
parent
5d20f19b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
mjpegdec.c
libavcodec/mjpegdec.c
+19
-21
No files found.
libavcodec/mjpegdec.c
View file @
050f2b3e
...
...
@@ -1520,28 +1520,26 @@ eoi_parser:
av_log
(
avctx
,
AV_LOG_WARNING
,
"Found EOI before any SOF, ignoring
\n
"
);
break
;
}
{
if
(
s
->
interlaced
)
{
s
->
bottom_field
^=
1
;
/* if not bottom field, do not output image yet */
if
(
s
->
bottom_field
==
!
s
->
interlace_polarity
)
goto
not_the_end
;
}
*
picture
=
*
s
->
picture_ptr
;
*
data_size
=
sizeof
(
AVFrame
);
if
(
!
s
->
lossless
){
picture
->
quality
=
FFMAX3
(
s
->
qscale
[
0
],
s
->
qscale
[
1
],
s
->
qscale
[
2
]);
picture
->
qstride
=
0
;
picture
->
qscale_table
=
s
->
qscale_table
;
memset
(
picture
->
qscale_table
,
picture
->
quality
,
(
s
->
width
+
15
)
/
16
);
if
(
avctx
->
debug
&
FF_DEBUG_QP
)
av_log
(
avctx
,
AV_LOG_DEBUG
,
"QP: %d
\n
"
,
picture
->
quality
);
picture
->
quality
*=
FF_QP2LAMBDA
;
}
goto
the_end
;
if
(
s
->
interlaced
)
{
s
->
bottom_field
^=
1
;
/* if not bottom field, do not output image yet */
if
(
s
->
bottom_field
==
!
s
->
interlace_polarity
)
goto
not_the_end
;
}
*
picture
=
*
s
->
picture_ptr
;
*
data_size
=
sizeof
(
AVFrame
);
if
(
!
s
->
lossless
){
picture
->
quality
=
FFMAX3
(
s
->
qscale
[
0
],
s
->
qscale
[
1
],
s
->
qscale
[
2
]);
picture
->
qstride
=
0
;
picture
->
qscale_table
=
s
->
qscale_table
;
memset
(
picture
->
qscale_table
,
picture
->
quality
,
(
s
->
width
+
15
)
/
16
);
if
(
avctx
->
debug
&
FF_DEBUG_QP
)
av_log
(
avctx
,
AV_LOG_DEBUG
,
"QP: %d
\n
"
,
picture
->
quality
);
picture
->
quality
*=
FF_QP2LAMBDA
;
}
goto
the_end
;
break
;
case
SOS
:
if
(
!
s
->
got_picture
)
{
...
...
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