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
e35a59ea
Commit
e35a59ea
authored
Apr 17, 2020
by
Andreas Rheinhardt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/webvttdec: Remove write-only variable
Signed-off-by:
Andreas Rheinhardt
<
andreas.rheinhardt@gmail.com
>
parent
476a7243
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
3 deletions
+1
-3
webvttdec.c
libavformat/webvttdec.c
+1
-3
No files found.
libavformat/webvttdec.c
View file @
e35a59ea
...
@@ -60,7 +60,7 @@ static int64_t read_ts(const char *s)
...
@@ -60,7 +60,7 @@ static int64_t read_ts(const char *s)
static
int
webvtt_read_header
(
AVFormatContext
*
s
)
static
int
webvtt_read_header
(
AVFormatContext
*
s
)
{
{
WebVTTContext
*
webvtt
=
s
->
priv_data
;
WebVTTContext
*
webvtt
=
s
->
priv_data
;
AVBPrint
header
,
cue
;
AVBPrint
cue
;
int
res
=
0
;
int
res
=
0
;
AVStream
*
st
=
avformat_new_stream
(
s
,
NULL
);
AVStream
*
st
=
avformat_new_stream
(
s
,
NULL
);
...
@@ -71,7 +71,6 @@ static int webvtt_read_header(AVFormatContext *s)
...
@@ -71,7 +71,6 @@ static int webvtt_read_header(AVFormatContext *s)
st
->
codecpar
->
codec_id
=
AV_CODEC_ID_WEBVTT
;
st
->
codecpar
->
codec_id
=
AV_CODEC_ID_WEBVTT
;
st
->
disposition
|=
webvtt
->
kind
;
st
->
disposition
|=
webvtt
->
kind
;
av_bprint_init
(
&
header
,
0
,
AV_BPRINT_SIZE_UNLIMITED
);
av_bprint_init
(
&
cue
,
0
,
AV_BPRINT_SIZE_UNLIMITED
);
av_bprint_init
(
&
cue
,
0
,
AV_BPRINT_SIZE_UNLIMITED
);
for
(;;)
{
for
(;;)
{
...
@@ -166,7 +165,6 @@ static int webvtt_read_header(AVFormatContext *s)
...
@@ -166,7 +165,6 @@ static int webvtt_read_header(AVFormatContext *s)
end:
end:
av_bprint_finalize
(
&
cue
,
NULL
);
av_bprint_finalize
(
&
cue
,
NULL
);
av_bprint_finalize
(
&
header
,
NULL
);
return
res
;
return
res
;
}
}
...
...
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