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
f85cad79
Commit
f85cad79
authored
Jun 13, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter: properly set SAR for A->V filters
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
3839580b
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
2 deletions
+8
-2
avf_abitscope.c
libavfilter/avf_abitscope.c
+2
-0
avf_avectorscope.c
libavfilter/avf_avectorscope.c
+1
-0
avf_showfreqs.c
libavfilter/avf_showfreqs.c
+1
-0
avf_showspectrum.c
libavfilter/avf_showspectrum.c
+2
-1
f_ebur128.c
libavfilter/f_ebur128.c
+2
-1
No files found.
libavfilter/avf_abitscope.c
View file @
f85cad79
...
...
@@ -166,6 +166,8 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
memset
(
outpicref
->
data
[
0
]
+
i
*
outpicref
->
linesize
[
0
],
0
,
outlink
->
w
*
4
);
outpicref
->
pts
=
insamples
->
pts
;
outpicref
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
switch
(
insamples
->
format
)
{
case
AV_SAMPLE_FMT_S16P
:
for
(
ch
=
0
;
ch
<
inlink
->
channels
;
ch
++
)
{
...
...
libavfilter/avf_avectorscope.c
View file @
f85cad79
...
...
@@ -246,6 +246,7 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *insamples)
return
AVERROR
(
ENOMEM
);
}
s
->
outpicref
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
for
(
i
=
0
;
i
<
outlink
->
h
;
i
++
)
memset
(
s
->
outpicref
->
data
[
0
]
+
i
*
s
->
outpicref
->
linesize
[
0
],
0
,
outlink
->
w
*
4
);
}
...
...
libavfilter/avf_showfreqs.c
View file @
f85cad79
...
...
@@ -434,6 +434,7 @@ static int plot_freqs(AVFilterLink *inlink, AVFrame *in)
av_free
(
colors
);
out
->
pts
=
in
->
pts
;
out
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
return
ff_filter_frame
(
outlink
,
out
);
}
...
...
libavfilter/avf_showspectrum.c
View file @
f85cad79
...
...
@@ -306,6 +306,7 @@ static int config_output(AVFilterLink *outlink)
outlink
->
w
=
s
->
w
;
outlink
->
h
=
s
->
h
;
outlink
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
if
(
s
->
legend
)
{
s
->
start_x
=
log10
(
inlink
->
sample_rate
)
*
25
;
...
...
@@ -422,7 +423,7 @@ static int config_output(AVFilterLink *outlink)
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
outpicref
)
return
AVERROR
(
ENOMEM
);
out
link
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
out
picref
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
for
(
i
=
0
;
i
<
outlink
->
h
;
i
++
)
{
memset
(
outpicref
->
data
[
0
]
+
i
*
outpicref
->
linesize
[
0
],
0
,
outlink
->
w
);
memset
(
outpicref
->
data
[
1
]
+
i
*
outpicref
->
linesize
[
1
],
128
,
outlink
->
w
);
...
...
libavfilter/f_ebur128.c
View file @
f85cad79
...
...
@@ -269,6 +269,7 @@ static int config_video_output(AVFilterLink *outlink)
}
outlink
->
w
=
ebur128
->
w
;
outlink
->
h
=
ebur128
->
h
;
outlink
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
#define PAD 8
...
...
@@ -299,7 +300,7 @@ static int config_video_output(AVFilterLink *outlink)
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
outpicref
)
return
AVERROR
(
ENOMEM
);
out
link
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
out
picref
->
sample_aspect_ratio
=
(
AVRational
){
1
,
1
};
/* init y references values (to draw LU lines) */
ebur128
->
y_line_ref
=
av_calloc
(
ebur128
->
graph
.
h
+
1
,
sizeof
(
*
ebur128
->
y_line_ref
));
...
...
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