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
e83c1e2d
Commit
e83c1e2d
authored
Nov 14, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avs: return meaningful error codes.
parent
620faee5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
avs.c
libavcodec/avs.c
+5
-5
No files found.
libavcodec/avs.c
View file @
e83c1e2d
...
...
@@ -54,14 +54,14 @@ avs_decode_frame(AVCodecContext * avctx,
AVFrame
*
const
p
=
&
avs
->
picture
;
const
uint8_t
*
table
,
*
vect
;
uint8_t
*
out
;
int
i
,
j
,
x
,
y
,
stride
,
vect_w
=
3
,
vect_h
=
3
;
int
i
,
j
,
x
,
y
,
stride
,
ret
,
vect_w
=
3
,
vect_h
=
3
;
AvsVideoSubType
sub_type
;
AvsBlockType
type
;
GetBitContext
change_map
;
if
(
avctx
->
reget_buffer
(
avctx
,
p
)
)
{
if
(
(
ret
=
avctx
->
reget_buffer
(
avctx
,
p
))
<
0
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"reget_buffer() failed
\n
"
);
return
-
1
;
return
ret
;
}
p
->
reference
=
1
;
p
->
pict_type
=
AV_PICTURE_TYPE_P
;
...
...
@@ -94,7 +94,7 @@ avs_decode_frame(AVCodecContext * avctx,
}
if
(
type
!=
AVS_VIDEO
)
return
-
1
;
return
AVERROR_INVALIDDATA
;
switch
(
sub_type
)
{
case
AVS_I_FRAME
:
...
...
@@ -116,7 +116,7 @@ avs_decode_frame(AVCodecContext * avctx,
break
;
default:
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
if
(
buf_end
-
buf
<
256
*
vect_w
*
vect_h
)
...
...
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