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
f1debfd0
Commit
f1debfd0
authored
Feb 24, 2007
by
Alex Beregszaszi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rescale pts/dts for output format
Originally committed as revision 8111 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
f75cdda7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
ffserver.c
ffserver.c
+8
-0
No files found.
ffserver.c
View file @
f1debfd0
...
...
@@ -2175,6 +2175,14 @@ static int http_prepare_data(HTTPContext *c)
/* XXX: potential leak */
return
-
1
;
}
if
(
pkt
.
dts
!=
AV_NOPTS_VALUE
)
pkt
.
dts
=
av_rescale_q
(
pkt
.
dts
,
c
->
fmt_in
->
streams
[
pkt
.
stream_index
]
->
time_base
,
ctx
->
streams
[
pkt
.
stream_index
]
->
time_base
);
if
(
pkt
.
pts
!=
AV_NOPTS_VALUE
)
pkt
.
pts
=
av_rescale_q
(
pkt
.
pts
,
c
->
fmt_in
->
streams
[
pkt
.
stream_index
]
->
time_base
,
ctx
->
streams
[
pkt
.
stream_index
]
->
time_base
);
if
(
av_write_frame
(
ctx
,
&
pkt
))
{
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