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
ac006d29
Commit
ac006d29
authored
Sep 10, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/flvdec: return meaningful error codes
parent
0c71d5a0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
flvdec.c
libavcodec/flvdec.c
+3
-3
No files found.
libavcodec/flvdec.c
View file @
ac006d29
...
...
@@ -40,12 +40,12 @@ int ff_flv_decode_picture_header(MpegEncContext *s)
/* picture header */
if
(
get_bits_long
(
&
s
->
gb
,
17
)
!=
1
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Bad picture start code
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
format
=
get_bits
(
&
s
->
gb
,
5
);
if
(
format
!=
0
&&
format
!=
1
)
{
av_log
(
s
->
avctx
,
AV_LOG_ERROR
,
"Bad picture format
\n
"
);
return
-
1
;
return
AVERROR_INVALIDDATA
;
}
s
->
h263_flv
=
format
+
1
;
s
->
picture_number
=
get_bits
(
&
s
->
gb
,
8
);
/* picture timestamp */
...
...
@@ -84,7 +84,7 @@ int ff_flv_decode_picture_header(MpegEncContext *s)
break
;
}
if
(
av_image_check_size
(
width
,
height
,
0
,
s
->
avctx
))
return
-
1
;
return
AVERROR
(
EINVAL
)
;
s
->
width
=
width
;
s
->
height
=
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