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
206c34e1
Commit
206c34e1
authored
Sep 10, 2012
by
Stefano Sabatini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/setpts: set SAMPLE_RATE to NAN when input is no audio
Should be more robust/consistent.
parent
722762f7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
f_setpts.c
libavfilter/f_setpts.c
+2
-2
version.h
libavfilter/version.h
+1
-1
No files found.
libavfilter/f_setpts.c
View file @
206c34e1
...
...
@@ -106,8 +106,8 @@ static int config_input(AVFilterLink *inlink)
setpts
->
type
=
inlink
->
type
;
setpts
->
var_values
[
VAR_TB
]
=
av_q2d
(
inlink
->
time_base
);
if
(
setpts
->
type
==
AVMEDIA_TYPE_AUDIO
)
setpts
->
var_values
[
VAR_SAMPLE_RATE
]
=
inlink
->
sample_rate
;
setpts
->
var_values
[
VAR_SAMPLE_RATE
]
=
setpts
->
type
==
AVMEDIA_TYPE_AUDIO
?
inlink
->
sample_rate
:
NAN
;
setpts
->
var_values
[
VAR_FRAME_RATE
]
=
inlink
->
frame_rate
.
num
&&
inlink
->
frame_rate
.
den
?
av_q2d
(
inlink
->
frame_rate
)
:
NAN
;
...
...
libavfilter/version.h
View file @
206c34e1
...
...
@@ -30,7 +30,7 @@
#define LIBAVFILTER_VERSION_MAJOR 3
#define LIBAVFILTER_VERSION_MINOR 16
#define LIBAVFILTER_VERSION_MICRO 10
2
#define LIBAVFILTER_VERSION_MICRO 10
3
#define LIBAVFILTER_VERSION_INT AV_VERSION_INT(LIBAVFILTER_VERSION_MAJOR, \
LIBAVFILTER_VERSION_MINOR, \
...
...
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