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
92b3d8bc
Commit
92b3d8bc
authored
Oct 13, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bethsoftvideo: return meaningfull error codes
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
efb0e4e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
bethsoftvideo.c
libavcodec/bethsoftvideo.c
+3
-3
No files found.
libavcodec/bethsoftvideo.c
View file @
92b3d8bc
...
...
@@ -77,9 +77,9 @@ static int bethsoftvid_decode_frame(AVCodecContext *avctx,
int
code
,
ret
;
int
yoffset
;
if
(
avctx
->
reget_buffer
(
avctx
,
&
vid
->
frame
)
)
{
if
(
(
ret
=
avctx
->
reget_buffer
(
avctx
,
&
vid
->
frame
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"reget_buffer() failed
\n
"
);
return
-
1
;
return
ret
;
}
wrap_to_next_line
=
vid
->
frame
.
linesize
[
0
]
-
avctx
->
width
;
...
...
@@ -107,7 +107,7 @@ static int bethsoftvid_decode_frame(AVCodecContext *avctx,
case
VIDEO_YOFF_P_FRAME
:
yoffset
=
bytestream2_get_le16
(
&
vid
->
g
);
if
(
yoffset
>=
avctx
->
height
)
return
-
1
;
return
AVERROR_INVALIDDATA
;
dst
+=
vid
->
frame
.
linesize
[
0
]
*
yoffset
;
}
...
...
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