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
db7bd99e
Commit
db7bd99e
authored
Oct 02, 2021
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/f_reverse: add missing S64(P) sample format support
parent
ba63078b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
f_reverse.c
libavfilter/f_reverse.c
+13
-0
No files found.
libavfilter/f_reverse.c
View file @
db7bd99e
...
...
@@ -167,6 +167,12 @@ static void reverse_samples_planar(AVFrame *out)
FFSWAP
(
int32_t
,
dst
[
i
],
dst
[
j
]);
}
break
;
case
AV_SAMPLE_FMT_S64P
:
{
int64_t
*
dst
=
(
int64_t
*
)
out
->
extended_data
[
p
];
for
(
int
i
=
0
,
j
=
out
->
nb_samples
-
1
;
i
<
j
;
i
++
,
j
--
)
FFSWAP
(
int64_t
,
dst
[
i
],
dst
[
j
]);
}
break
;
case
AV_SAMPLE_FMT_FLTP
:
{
float
*
dst
=
(
float
*
)
out
->
extended_data
[
p
];
for
(
int
i
=
0
,
j
=
out
->
nb_samples
-
1
;
i
<
j
;
i
++
,
j
--
)
...
...
@@ -209,6 +215,13 @@ static void reverse_samples_packed(AVFrame *out)
FFSWAP
(
int32_t
,
dst
[
i
*
channels
+
p
],
dst
[
j
*
channels
+
p
]);
}
break
;
case
AV_SAMPLE_FMT_S64
:
{
int64_t
*
dst
=
(
int64_t
*
)
out
->
extended_data
[
0
];
for
(
int
i
=
0
,
j
=
out
->
nb_samples
-
1
;
i
<
j
;
i
++
,
j
--
)
for
(
int
p
=
0
;
p
<
channels
;
p
++
)
FFSWAP
(
int64_t
,
dst
[
i
*
channels
+
p
],
dst
[
j
*
channels
+
p
]);
}
break
;
case
AV_SAMPLE_FMT_FLT
:
{
float
*
dst
=
(
float
*
)
out
->
extended_data
[
0
];
for
(
int
i
=
0
,
j
=
out
->
nb_samples
-
1
;
i
<
j
;
i
++
,
j
--
)
...
...
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