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
6229f782
Commit
6229f782
authored
Nov 11, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/dvbsubdec: Add return code to save_subtitle_set()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
db36b6e2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dvbsubdec.c
libavcodec/dvbsubdec.c
+4
-2
No files found.
libavcodec/dvbsubdec.c
View file @
6229f782
...
...
@@ -757,7 +757,7 @@ static int dvbsub_read_8bit_string(uint8_t *destbuf, int dbuf_len,
return
pixels_read
;
}
static
void
save_subtitle_set
(
AVCodecContext
*
avctx
,
AVSubtitle
*
sub
,
int
*
got_output
)
static
int
save_subtitle_set
(
AVCodecContext
*
avctx
,
AVSubtitle
*
sub
,
int
*
got_output
)
{
DVBSubContext
*
ctx
=
avctx
->
priv_data
;
DVBSubRegionDisplay
*
display
;
...
...
@@ -778,7 +778,7 @@ static void save_subtitle_set(AVCodecContext *avctx, AVSubtitle *sub, int *got_o
/* Not touching AVSubtitles again*/
if
(
sub
->
num_rects
)
{
avpriv_request_sample
(
ctx
,
"Different Version of Segment asked Twice
\n
"
);
return
;
return
AVERROR_PATCHWELCOME
;
}
for
(
display
=
ctx
->
display_list
;
display
;
display
=
display
->
next
)
{
region
=
get_region
(
ctx
,
display
->
region_id
);
...
...
@@ -846,6 +846,8 @@ static void save_subtitle_set(AVCodecContext *avctx, AVSubtitle *sub, int *got_o
i
++
;
}
}
return
0
;
}
static
void
dvbsub_parse_pixel_data_block
(
AVCodecContext
*
avctx
,
DVBSubObjectDisplay
*
display
,
...
...
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