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
85ac1258
Commit
85ac1258
authored
Aug 11, 2013
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nuv: check ff_rtjpeg_decode_frame_yuv420 return value
CC: libav-stable@libav.org
parent
c16ddcc9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
nuv.c
libavcodec/nuv.c
+4
-2
No files found.
libavcodec/nuv.c
View file @
85ac1258
...
...
@@ -153,7 +153,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
NuvContext
*
c
=
avctx
->
priv_data
;
AVFrame
*
picture
=
data
;
int
orig_size
=
buf_size
;
int
keyframe
;
int
keyframe
,
ret
;
int
result
,
init_frame
=
!
avctx
->
frame_number
;
enum
{
NUV_UNCOMPRESSED
=
'0'
,
...
...
@@ -263,7 +263,9 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
}
case
NUV_RTJPEG_IN_LZO
:
case
NUV_RTJPEG
:
ff_rtjpeg_decode_frame_yuv420
(
&
c
->
rtj
,
&
c
->
pic
,
buf
,
buf_size
);
ret
=
ff_rtjpeg_decode_frame_yuv420
(
&
c
->
rtj
,
&
c
->
pic
,
buf
,
buf_size
);
if
(
ret
<
0
)
return
ret
;
break
;
case
NUV_BLACK
:
memset
(
c
->
pic
.
data
[
0
],
0
,
c
->
width
*
c
->
height
);
...
...
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