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
8bef4338
Commit
8bef4338
authored
Oct 06, 2014
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smoothstreamingenc: Simplify code by removing a redundant variable
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
bd239c9a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
smoothstreamingenc.c
libavformat/smoothstreamingenc.c
+4
-3
No files found.
libavformat/smoothstreamingenc.c
View file @
8bef4338
...
...
@@ -516,7 +516,7 @@ static int ism_flush(AVFormatContext *s, int final)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
OutputStream
*
os
=
&
c
->
streams
[
i
];
char
filename
[
1024
],
target_filename
[
1024
],
header_filename
[
1024
];
int64_t
s
tart_pos
=
os
->
tail_pos
,
s
ize
;
int64_t
size
;
int64_t
start_ts
,
duration
,
moof_size
;
if
(
!
os
->
packets_written
)
continue
;
...
...
@@ -534,14 +534,15 @@ static int ism_flush(AVFormatContext *s, int final)
ffurl_close
(
os
->
out
);
os
->
out
=
NULL
;
size
=
os
->
tail_pos
-
start_pos
;
size
=
os
->
tail_pos
-
os
->
cur_
start_pos
;
if
((
ret
=
parse_fragment
(
s
,
filename
,
&
start_ts
,
&
duration
,
&
moof_size
,
size
))
<
0
)
break
;
snprintf
(
header_filename
,
sizeof
(
header_filename
),
"%s/FragmentInfo(%s=%"
PRIu64
")"
,
os
->
dirname
,
os
->
stream_type_tag
,
start_ts
);
snprintf
(
target_filename
,
sizeof
(
target_filename
),
"%s/Fragments(%s=%"
PRIu64
")"
,
os
->
dirname
,
os
->
stream_type_tag
,
start_ts
);
copy_moof
(
s
,
filename
,
header_filename
,
moof_size
);
rename
(
filename
,
target_filename
);
add_fragment
(
os
,
target_filename
,
header_filename
,
start_ts
,
duration
,
start_pos
,
size
);
add_fragment
(
os
,
target_filename
,
header_filename
,
start_ts
,
duration
,
os
->
cur_start_pos
,
size
);
}
if
(
c
->
window_size
||
(
final
&&
c
->
remove_at_exit
))
{
...
...
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