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
426b11a8
Commit
426b11a8
authored
Nov 21, 2006
by
Kostya Shishkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Decode non-interleaved scans
Originally committed as revision 7143 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
eb10acec
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
mjpeg.c
libavcodec/mjpeg.c
+2
-8
No files found.
libavcodec/mjpeg.c
View file @
426b11a8
...
...
@@ -1643,12 +1643,6 @@ static int mjpeg_decode_sos(MJpegDecodeContext *s)
dprintf
(
"decode_sos: invalid len (%d)
\n
"
,
len
);
return
-
1
;
}
/* XXX: only interleaved scan accepted */
if
((
nb_components
!=
s
->
nb_components
)
&&
!
s
->
ls
&&
!
s
->
progressive
)
{
dprintf
(
"decode_sos: components(%d) mismatch
\n
"
,
nb_components
);
return
-
1
;
}
vmax
=
0
;
hmax
=
0
;
for
(
i
=
0
;
i
<
nb_components
;
i
++
)
{
...
...
@@ -1709,8 +1703,8 @@ static int mjpeg_decode_sos(MJpegDecodeContext *s)
s
->
mb_width
=
(
s
->
width
+
s
->
h_max
*
block_size
-
1
)
/
(
s
->
h_max
*
block_size
);
s
->
mb_height
=
(
s
->
height
+
s
->
v_max
*
block_size
-
1
)
/
(
s
->
v_max
*
block_size
);
}
else
if
(
!
s
->
ls
)
{
/* skip this for JPEG-LS */
h
=
s
->
h_max
/
s
->
h_scount
[
s
->
comp_index
[
0
]
];
v
=
s
->
v_max
/
s
->
v_scount
[
s
->
comp_index
[
0
]
];
h
=
s
->
h_max
/
s
->
h_scount
[
0
];
v
=
s
->
v_max
/
s
->
v_scount
[
0
];
s
->
mb_width
=
(
s
->
width
+
h
*
block_size
-
1
)
/
(
h
*
block_size
);
s
->
mb_height
=
(
s
->
height
+
v
*
block_size
-
1
)
/
(
v
*
block_size
);
s
->
nb_blocks
[
0
]
=
1
;
...
...
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