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
e29f66d6
Commit
e29f66d6
authored
Apr 04, 2012
by
Clément Bœsch
Committed by
Clément Bœsch
Apr 04, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ffmpeg: fix a few typo.
parent
a4e359a3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
ffmpeg.c
ffmpeg.c
+4
-4
No files found.
ffmpeg.c
View file @
e29f66d6
...
@@ -2684,8 +2684,8 @@ static int transcode_init(OutputFile *output_files, int nb_output_files,
...
@@ -2684,8 +2684,8 @@ static int transcode_init(OutputFile *output_files, int nb_output_files,
codec
->
time_base
=
(
AVRational
){
ost
->
frame_rate
.
den
,
ost
->
frame_rate
.
num
};
codec
->
time_base
=
(
AVRational
){
ost
->
frame_rate
.
den
,
ost
->
frame_rate
.
num
};
if
(
av_q2d
(
codec
->
time_base
)
<
0
.
001
&&
video_sync_method
!=
VSYNC_PASSTHROUGH
if
(
av_q2d
(
codec
->
time_base
)
<
0
.
001
&&
video_sync_method
!=
VSYNC_PASSTHROUGH
&&
(
video_sync_method
==
VSYNC_CFR
||
(
video_sync_method
==
VSYNC_AUTO
&&
!
(
oc
->
oformat
->
flags
&
AVFMT_VARIABLE_FPS
)))){
&&
(
video_sync_method
==
VSYNC_CFR
||
(
video_sync_method
==
VSYNC_AUTO
&&
!
(
oc
->
oformat
->
flags
&
AVFMT_VARIABLE_FPS
)))){
av_log
(
oc
,
AV_LOG_WARNING
,
"Frame rate very high for a muxer not eff
c
iciently supporting it.
\n
"
av_log
(
oc
,
AV_LOG_WARNING
,
"Frame rate very high for a muxer not efficiently supporting it.
\n
"
"Please consider specif
i
ying a lower framerate, a different muxer or -vsync 2
\n
"
);
"Please consider specifying a lower framerate, a different muxer or -vsync 2
\n
"
);
}
}
for
(
j
=
0
;
j
<
ost
->
forced_kf_count
;
j
++
)
for
(
j
=
0
;
j
<
ost
->
forced_kf_count
;
j
++
)
ost
->
forced_kf_pts
[
j
]
=
av_rescale_q
(
ost
->
forced_kf_pts
[
j
],
ost
->
forced_kf_pts
[
j
]
=
av_rescale_q
(
ost
->
forced_kf_pts
[
j
],
...
@@ -3122,7 +3122,7 @@ static int transcode(OutputFile *output_files, int nb_output_files,
...
@@ -3122,7 +3122,7 @@ static int transcode(OutputFile *output_files, int nb_output_files,
if
(
delta
<
-
1LL
*
dts_error_threshold
*
AV_TIME_BASE
||
if
(
delta
<
-
1LL
*
dts_error_threshold
*
AV_TIME_BASE
||
(
delta
>
1LL
*
dts_error_threshold
*
AV_TIME_BASE
&&
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
||
(
delta
>
1LL
*
dts_error_threshold
*
AV_TIME_BASE
&&
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
||
pkt_dts
+
1
<
ist
->
pts
){
pkt_dts
+
1
<
ist
->
pts
){
av_log
(
NULL
,
AV_LOG_WARNING
,
"DTS %"
PRId64
", next:%"
PRId64
" st:%d invalid droping
\n
"
,
pkt
.
dts
,
ist
->
next_dts
,
pkt
.
stream_index
);
av_log
(
NULL
,
AV_LOG_WARNING
,
"DTS %"
PRId64
", next:%"
PRId64
" st:%d invalid drop
p
ing
\n
"
,
pkt
.
dts
,
ist
->
next_dts
,
pkt
.
stream_index
);
pkt
.
dts
=
AV_NOPTS_VALUE
;
pkt
.
dts
=
AV_NOPTS_VALUE
;
}
}
if
(
pkt
.
pts
!=
AV_NOPTS_VALUE
){
if
(
pkt
.
pts
!=
AV_NOPTS_VALUE
){
...
@@ -3131,7 +3131,7 @@ static int transcode(OutputFile *output_files, int nb_output_files,
...
@@ -3131,7 +3131,7 @@ static int transcode(OutputFile *output_files, int nb_output_files,
if
(
delta
<
-
1LL
*
dts_error_threshold
*
AV_TIME_BASE
||
if
(
delta
<
-
1LL
*
dts_error_threshold
*
AV_TIME_BASE
||
(
delta
>
1LL
*
dts_error_threshold
*
AV_TIME_BASE
&&
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
||
(
delta
>
1LL
*
dts_error_threshold
*
AV_TIME_BASE
&&
ist
->
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_SUBTITLE
)
||
pkt_pts
+
1
<
ist
->
pts
)
{
pkt_pts
+
1
<
ist
->
pts
)
{
av_log
(
NULL
,
AV_LOG_WARNING
,
"PTS %"
PRId64
", next:%"
PRId64
" invalid droping st:%d
\n
"
,
pkt
.
pts
,
ist
->
next_dts
,
pkt
.
stream_index
);
av_log
(
NULL
,
AV_LOG_WARNING
,
"PTS %"
PRId64
", next:%"
PRId64
" invalid drop
p
ing st:%d
\n
"
,
pkt
.
pts
,
ist
->
next_dts
,
pkt
.
stream_index
);
pkt
.
pts
=
AV_NOPTS_VALUE
;
pkt
.
pts
=
AV_NOPTS_VALUE
;
}
}
}
}
...
...
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