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
4a4107b4
Commit
4a4107b4
authored
May 17, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jpegls: factorize return paths
parent
a5a0ef5e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
jpeglsdec.c
libavcodec/jpeglsdec.c
+6
-5
No files found.
libavcodec/jpeglsdec.c
View file @
4a4107b4
...
...
@@ -274,7 +274,7 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near,
int
i
,
t
=
0
;
uint8_t
*
zero
,
*
last
,
*
cur
;
JLSState
*
state
;
int
off
=
0
,
stride
=
1
,
width
,
shift
;
int
off
=
0
,
stride
=
1
,
width
,
shift
,
ret
=
0
;
zero
=
av_mallocz
(
s
->
picture_ptr
->
linesize
[
0
]);
last
=
zero
;
...
...
@@ -347,9 +347,8 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near,
}
}
else
if
(
ilv
==
2
)
{
/* sample interleaving */
avpriv_report_missing_feature
(
s
->
avctx
,
"Sample interleaved images"
);
av_free
(
state
);
av_free
(
zero
);
return
AVERROR_PATCHWELCOME
;
ret
=
AVERROR_PATCHWELCOME
;
goto
end
;
}
if
(
shift
)
{
/* we need to do point transform or normalize samples */
...
...
@@ -375,10 +374,12 @@ int ff_jpegls_decode_picture(MJpegDecodeContext *s, int near,
}
}
}
end:
av_free
(
state
);
av_free
(
zero
);
return
0
;
return
ret
;
}
AVCodec
ff_jpegls_decoder
=
{
...
...
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