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
75a84588
Commit
75a84588
authored
Apr 10, 2020
by
John Stebbins
Committed by
Philip Langdale
Apr 10, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/dvbsub: return meaningful error codes
Signed-off-by:
Philip Langdale
<
philipl@overt.org
>
parent
eda8d48f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
dvbsub.c
libavcodec/dvbsub.c
+4
-4
No files found.
libavcodec/dvbsub.c
View file @
75a84588
...
...
@@ -282,7 +282,7 @@ static int encode_dvb_subtitles(AVCodecContext *avctx,
page_id
=
1
;
if
(
h
->
num_rects
&&
!
h
->
rects
)
return
-
1
;
return
AVERROR
(
EINVAL
)
;
if
(
avctx
->
width
>
0
&&
avctx
->
height
>
0
)
{
if
(
buf_size
<
11
)
...
...
@@ -341,7 +341,7 @@ static int encode_dvb_subtitles(AVCodecContext *avctx,
/* 8 bpp, standard encoding */
bpp_index
=
2
;
}
else
{
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
...
...
@@ -393,7 +393,7 @@ static int encode_dvb_subtitles(AVCodecContext *avctx,
/* 8 bpp, standard encoding */
bpp_index
=
2
;
}
else
{
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
*
q
++
=
0x0f
;
/* sync_byte */
...
...
@@ -441,7 +441,7 @@ static int encode_dvb_subtitles(AVCodecContext *avctx,
/* 8 bpp, standard encoding */
dvb_encode_rle
=
dvb_encode_rle8
;
}
else
{
return
-
1
;
return
AVERROR
(
EINVAL
)
;
}
/* Object Data segment */
...
...
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