Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
4c1a79eb
Commit
4c1a79eb
authored
Nov 25, 2022
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/avf_showcqt: fix crash when using vflip filter
parent
9d2b5762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
avf_showcqt.c
libavfilter/avf_showcqt.c
+4
-3
No files found.
libavfilter/avf_showcqt.c
View file @
4c1a79eb
...
@@ -1031,16 +1031,17 @@ static void draw_sono(AVFrame *out, AVFrame *sono, int off, int idx)
...
@@ -1031,16 +1031,17 @@ static void draw_sono(AVFrame *out, AVFrame *sono, int off, int idx)
int
nb_planes
=
(
fmt
==
AV_PIX_FMT_RGB24
)
?
1
:
3
;
int
nb_planes
=
(
fmt
==
AV_PIX_FMT_RGB24
)
?
1
:
3
;
int
offh
=
(
fmt
==
AV_PIX_FMT_YUV420P
)
?
off
/
2
:
off
;
int
offh
=
(
fmt
==
AV_PIX_FMT_YUV420P
)
?
off
/
2
:
off
;
int
inc
=
(
fmt
==
AV_PIX_FMT_YUV420P
)
?
2
:
1
;
int
inc
=
(
fmt
==
AV_PIX_FMT_YUV420P
)
?
2
:
1
;
int
ls
,
i
,
y
,
yh
;
ptrdiff_t
ls
;
int
i
,
y
,
yh
;
ls
=
FF
MIN
(
out
->
linesize
[
0
],
sono
->
linesize
[
0
]
);
ls
=
FF
ABS
(
FFMIN
(
out
->
linesize
[
0
],
sono
->
linesize
[
0
])
);
for
(
y
=
0
;
y
<
h
;
y
++
)
{
for
(
y
=
0
;
y
<
h
;
y
++
)
{
memcpy
(
out
->
data
[
0
]
+
(
off
+
y
)
*
out
->
linesize
[
0
],
memcpy
(
out
->
data
[
0
]
+
(
off
+
y
)
*
out
->
linesize
[
0
],
sono
->
data
[
0
]
+
(
idx
+
y
)
%
h
*
sono
->
linesize
[
0
],
ls
);
sono
->
data
[
0
]
+
(
idx
+
y
)
%
h
*
sono
->
linesize
[
0
],
ls
);
}
}
for
(
i
=
1
;
i
<
nb_planes
;
i
++
)
{
for
(
i
=
1
;
i
<
nb_planes
;
i
++
)
{
ls
=
FF
MIN
(
out
->
linesize
[
i
],
sono
->
linesize
[
i
]
);
ls
=
FF
ABS
(
FFMIN
(
out
->
linesize
[
i
],
sono
->
linesize
[
i
])
);
for
(
y
=
0
;
y
<
h
;
y
+=
inc
)
{
for
(
y
=
0
;
y
<
h
;
y
+=
inc
)
{
yh
=
(
fmt
==
AV_PIX_FMT_YUV420P
)
?
y
/
2
:
y
;
yh
=
(
fmt
==
AV_PIX_FMT_YUV420P
)
?
y
/
2
:
y
;
memcpy
(
out
->
data
[
i
]
+
(
offh
+
yh
)
*
out
->
linesize
[
i
],
memcpy
(
out
->
data
[
i
]
+
(
offh
+
yh
)
*
out
->
linesize
[
i
],
...
...
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