Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
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
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
f57baf74
Commit
f57baf74
authored
Jan 21, 2014
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf/segment: drop pointless variable oc from seg_write_packet()
parent
169065fb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
segment.c
libavformat/segment.c
+1
-4
No files found.
libavformat/segment.c
View file @
f57baf74
...
...
@@ -657,7 +657,6 @@ fail:
static
int
seg_write_packet
(
AVFormatContext
*
s
,
AVPacket
*
pkt
)
{
SegmentContext
*
seg
=
s
->
priv_data
;
AVFormatContext
*
oc
=
seg
->
avf
;
AVStream
*
st
=
s
->
streams
[
pkt
->
stream_index
];
int64_t
end_pts
=
INT64_MAX
,
offset
;
int
start_frame
=
INT_MAX
;
...
...
@@ -690,8 +689,6 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
if
((
ret
=
segment_start
(
s
,
seg
->
individual_header_trailer
))
<
0
)
goto
fail
;
oc
=
seg
->
avf
;
seg
->
cur_entry
.
index
=
seg
->
segment_idx
;
seg
->
cur_entry
.
start_time
=
(
double
)
pkt
->
pts
*
av_q2d
(
st
->
time_base
);
seg
->
cur_entry
.
start_pts
=
av_rescale_q
(
pkt
->
pts
,
st
->
time_base
,
AV_TIME_BASE_Q
);
...
...
@@ -725,7 +722,7 @@ static int seg_write_packet(AVFormatContext *s, AVPacket *pkt)
av_ts2str
(
pkt
->
pts
),
av_ts2timestr
(
pkt
->
pts
,
&
st
->
time_base
),
av_ts2str
(
pkt
->
dts
),
av_ts2timestr
(
pkt
->
dts
,
&
st
->
time_base
));
ret
=
ff_write_chained
(
oc
,
pkt
->
stream_index
,
pkt
,
s
);
ret
=
ff_write_chained
(
seg
->
avf
,
pkt
->
stream_index
,
pkt
,
s
);
fail:
if
(
pkt
->
stream_index
==
seg
->
reference_stream_index
)
...
...
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