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
180d7f33
Commit
180d7f33
authored
Sep 20, 2014
by
Clément Bœsch
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec/microdvddec: remove old compat code
parent
71f62751
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
microdvddec.c
libavcodec/microdvddec.c
+0
-10
No files found.
libavcodec/microdvddec.c
View file @
180d7f33
...
@@ -260,7 +260,6 @@ static int microdvd_decode_frame(AVCodecContext *avctx,
...
@@ -260,7 +260,6 @@ static int microdvd_decode_frame(AVCodecContext *avctx,
{
{
AVSubtitle
*
sub
=
data
;
AVSubtitle
*
sub
=
data
;
AVBPrint
new_line
;
AVBPrint
new_line
;
char
c
;
char
*
line
=
avpkt
->
data
;
char
*
line
=
avpkt
->
data
;
char
*
end
=
avpkt
->
data
+
avpkt
->
size
;
char
*
end
=
avpkt
->
data
+
avpkt
->
size
;
struct
microdvd_tag
tags
[
sizeof
(
MICRODVD_TAGS
)
-
1
]
=
{{
0
}};
struct
microdvd_tag
tags
[
sizeof
(
MICRODVD_TAGS
)
-
1
]
=
{{
0
}};
...
@@ -268,15 +267,6 @@ static int microdvd_decode_frame(AVCodecContext *avctx,
...
@@ -268,15 +267,6 @@ static int microdvd_decode_frame(AVCodecContext *avctx,
if
(
avpkt
->
size
<=
0
)
if
(
avpkt
->
size
<=
0
)
return
avpkt
->
size
;
return
avpkt
->
size
;
/* To be removed later */
if
(
sscanf
(
line
,
"{%*d}{%*[0123456789]}%c"
,
&
c
)
==
1
&&
line
[
avpkt
->
size
-
1
]
==
'\n'
)
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"AVPacket is not clean (contains timing "
"information and a trailing line break). You need to upgrade "
"your libavformat or sanitize your packet.
\n
"
);
return
AVERROR_INVALIDDATA
;
}
av_bprint_init
(
&
new_line
,
0
,
2048
);
av_bprint_init
(
&
new_line
,
0
,
2048
);
// subtitle content
// subtitle content
...
...
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