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
3c6f7015
Commit
3c6f7015
authored
Apr 17, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/proresdec_lgpl: pass return values instead of discarding them
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
9a8811f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
proresdec_lgpl.c
libavcodec/proresdec_lgpl.c
+5
-4
No files found.
libavcodec/proresdec_lgpl.c
View file @
3c6f7015
...
...
@@ -721,6 +721,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
const
uint8_t
*
buf
=
avpkt
->
data
;
int
buf_size
=
avpkt
->
size
;
int
frame_hdr_size
,
pic_num
,
pic_data_size
;
int
ret
;
ctx
->
frame
=
data
;
ctx
->
frame
->
pict_type
=
AV_PICTURE_TYPE_I
;
...
...
@@ -741,16 +742,16 @@ static int decode_frame(AVCodecContext *avctx, void *data, int *got_frame,
MOVE_DATA_PTR
(
frame_hdr_size
);
if
(
ff_get_buffer
(
avctx
,
ctx
->
frame
,
0
)
<
0
)
return
-
1
;
if
(
(
ret
=
ff_get_buffer
(
avctx
,
ctx
->
frame
,
0
)
)
<
0
)
return
ret
;
for
(
pic_num
=
0
;
ctx
->
frame
->
interlaced_frame
-
pic_num
+
1
;
pic_num
++
)
{
pic_data_size
=
decode_picture_header
(
ctx
,
buf
,
buf_size
,
avctx
);
if
(
pic_data_size
<
0
)
return
AVERROR_INVALIDDATA
;
if
(
decode_picture
(
ctx
,
pic_num
,
avctx
)
)
return
-
1
;
if
(
(
ret
=
decode_picture
(
ctx
,
pic_num
,
avctx
))
<
0
)
return
ret
;
MOVE_DATA_PTR
(
pic_data_size
);
}
...
...
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