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
5ec90c90
Commit
5ec90c90
authored
Sep 20, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/subviewerdec: remove old compat code
parent
180d7f33
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
subviewerdec.c
libavcodec/subviewerdec.c
+0
-9
No files found.
libavcodec/subviewerdec.c
View file @
5ec90c90
...
...
@@ -50,20 +50,11 @@ static int subviewer_event_to_ass(AVBPrint *buf, const char *p)
static
int
subviewer_decode_frame
(
AVCodecContext
*
avctx
,
void
*
data
,
int
*
got_sub_ptr
,
AVPacket
*
avpkt
)
{
char
c
;
int
ret
=
0
;
AVSubtitle
*
sub
=
data
;
const
char
*
ptr
=
avpkt
->
data
;
AVBPrint
buf
;
/* To be removed later */
if
(
ptr
&&
sscanf
(
ptr
,
"%*u:%*u:%*u.%*u,%*u:%*u:%*u.%*u%c"
,
&
c
)
==
1
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"AVPacket is not clean (contains timing "
"information). You need to upgrade your libavformat or "
"sanitize your packet.
\n
"
);
return
AVERROR_INVALIDDATA
;
}
av_bprint_init
(
&
buf
,
0
,
AV_BPRINT_SIZE_UNLIMITED
);
// note: no need to rescale pts & duration since they are in the same
// timebase as ASS (1/100)
...
...
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