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
df95f145
Commit
df95f145
authored
Oct 24, 2017
by
JULIAN GARDNER
Committed by
Carl Eugen Hoyos
Oct 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc/dvbsub: Do not fail hard in the region block for 256-colour encoding.
Adds a hunk forgotten in
8a6799d2
parent
3c14547e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
dvbsub.c
libavcodec/dvbsub.c
+3
-0
No files found.
libavcodec/dvbsub.c
View file @
df95f145
...
...
@@ -342,6 +342,9 @@ static int encode_dvb_subtitles(DVBSubtitleContext *s,
}
else
if
(
h
->
rects
[
region_id
]
->
nb_colors
<=
16
)
{
/* 4 bpp, standard encoding */
bpp_index
=
1
;
}
else
if
(
h
->
rects
[
region_id
]
->
nb_colors
<=
256
)
{
/* 8 bpp, standard encoding */
bpp_index
=
2
;
}
else
{
return
-
1
;
}
...
...
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