Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
8599c626
Commit
8599c626
authored
Nov 13, 2006
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Allow "empty" subtitle packets. These are used to "wipe" ephemer subtitles of the screen.
Used by mp4 and 3gpp Timed Text
parent
f02d5f70
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
modules/codec/subsdec.c
modules/codec/subsdec.c
+4
-2
No files found.
modules/codec/subsdec.c
View file @
8599c626
...
...
@@ -316,9 +316,11 @@ static subpicture_t *ParseText( decoder_t *p_dec, block_t *p_block )
}
/* Check validity of packet data */
if
(
p_block
->
i_buffer
<=
1
||
p_block
->
p_buffer
[
0
]
==
'\0'
)
/* An "empty" line containing only \0 can be used to force
and ephemer picture from the screen */
if
(
p_block
->
i_buffer
<
1
)
{
msg_Warn
(
p_dec
,
"
empty subtitle
"
);
msg_Warn
(
p_dec
,
"
no subtitle data
"
);
return
NULL
;
}
...
...
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