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
d80904cc
Commit
d80904cc
authored
Jun 23, 2008
by
Baptiste Coudurier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify
Originally committed as revision 13901 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
e21ac209
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
11 deletions
+6
-11
ffserver.c
ffserver.c
+6
-11
No files found.
ffserver.c
View file @
d80904cc
...
...
@@ -2159,7 +2159,8 @@ static int http_prepare_data(HTTPContext *c)
}
}
else
{
AVCodecContext
*
codec
;
AVStream
*
ist
=
c
->
fmt_in
->
streams
[
source_index
];
AVStream
*
ost
=
ctx
->
streams
[
pkt
.
stream_index
];
send_it:
/* specific handling for RTP: we use several
output stream (one for each RTP
...
...
@@ -2193,7 +2194,7 @@ static int http_prepare_data(HTTPContext *c)
}
else
{
ctx
=
&
c
->
fmt_ctx
;
/* Fudge here */
codec
=
ctx
->
streams
[
pkt
.
stream_index
]
->
codec
;
codec
=
ost
->
codec
;
}
if
(
c
->
is_packetized
)
{
...
...
@@ -2212,16 +2213,10 @@ static int http_prepare_data(HTTPContext *c)
}
c
->
fmt_ctx
.
pb
->
is_streamed
=
1
;
if
(
pkt
.
dts
!=
AV_NOPTS_VALUE
)
pkt
.
dts
=
av_rescale_q
(
pkt
.
dts
,
c
->
fmt_in
->
streams
[
source_index
]
->
time_base
,
ctx
->
streams
[
pkt
.
stream_index
]
->
time_base
);
pkt
.
dts
=
av_rescale_q
(
pkt
.
dts
,
ist
->
time_base
,
ost
->
time_base
);
if
(
pkt
.
pts
!=
AV_NOPTS_VALUE
)
pkt
.
pts
=
av_rescale_q
(
pkt
.
pts
,
c
->
fmt_in
->
streams
[
source_index
]
->
time_base
,
ctx
->
streams
[
pkt
.
stream_index
]
->
time_base
);
pkt
.
duration
=
av_rescale_q
(
pkt
.
duration
,
c
->
fmt_in
->
streams
[
source_index
]
->
time_base
,
ctx
->
streams
[
pkt
.
stream_index
]
->
time_base
);
pkt
.
pts
=
av_rescale_q
(
pkt
.
pts
,
ist
->
time_base
,
ost
->
time_base
);
pkt
.
duration
=
av_rescale_q
(
pkt
.
duration
,
ist
->
time_base
,
ost
->
time_base
);
if
(
av_write_frame
(
ctx
,
&
pkt
)
<
0
)
{
http_log
(
"Error writing frame to output
\n
"
);
c
->
state
=
HTTPSTATE_SEND_DATA_TRAILER
;
...
...
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