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
77fc7b76
Commit
77fc7b76
authored
Jul 05, 2014
by
Nidhi Makhijani
Committed by
Diego Biurrun
Jul 06, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vc1test: Return proper error codes
Signed-off-by:
Diego Biurrun
<
diego@biurrun.de
>
parent
86546109
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
vc1test.c
libavformat/vc1test.c
+3
-3
No files found.
libavformat/vc1test.c
View file @
77fc7b76
...
...
@@ -51,12 +51,12 @@ static int vc1t_read_header(AVFormatContext *s)
frames
=
avio_rl24
(
pb
);
if
(
avio_r8
(
pb
)
!=
0xC5
||
avio_rl32
(
pb
)
!=
4
)
return
-
1
;
return
AVERROR_INVALIDDATA
;
/* init video codec */
st
=
avformat_new_stream
(
s
,
NULL
);
if
(
!
st
)
return
-
1
;
return
AVERROR
(
ENOMEM
)
;
st
->
codec
->
codec_type
=
AVMEDIA_TYPE_VIDEO
;
st
->
codec
->
codec_id
=
AV_CODEC_ID_WMV3
;
...
...
@@ -67,7 +67,7 @@ static int vc1t_read_header(AVFormatContext *s)
st
->
codec
->
height
=
avio_rl32
(
pb
);
st
->
codec
->
width
=
avio_rl32
(
pb
);
if
(
avio_rl32
(
pb
)
!=
0xC
)
return
-
1
;
return
AVERROR_INVALIDDATA
;
avio_skip
(
pb
,
8
);
fps
=
avio_rl32
(
pb
);
if
(
fps
==
0xFFFFFFFF
)
...
...
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