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
0bbd8747
Commit
0bbd8747
authored
May 05, 2012
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: support audio in avfilter_copy_frame_props().
parent
11b6a824
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
10 deletions
+17
-10
avfilter.c
libavfilter/avfilter.c
+17
-10
No files found.
libavfilter/avfilter.c
View file @
0bbd8747
...
...
@@ -684,19 +684,26 @@ int avfilter_init_filter(AVFilterContext *filter, const char *args, void *opaque
int
avfilter_copy_frame_props
(
AVFilterBufferRef
*
dst
,
const
AVFrame
*
src
)
{
if
(
dst
->
type
!=
AVMEDIA_TYPE_VIDEO
)
return
AVERROR
(
EINVAL
);
dst
->
pts
=
src
->
pts
;
dst
->
format
=
src
->
format
;
dst
->
video
->
w
=
src
->
width
;
dst
->
video
->
h
=
src
->
height
;
dst
->
video
->
pixel_aspect
=
src
->
sample_aspect_ratio
;
dst
->
video
->
interlaced
=
src
->
interlaced_frame
;
dst
->
video
->
top_field_first
=
src
->
top_field_first
;
dst
->
video
->
key_frame
=
src
->
key_frame
;
dst
->
video
->
pict_type
=
src
->
pict_type
;
switch
(
dst
->
type
)
{
case
AVMEDIA_TYPE_VIDEO
:
dst
->
video
->
w
=
src
->
width
;
dst
->
video
->
h
=
src
->
height
;
dst
->
video
->
pixel_aspect
=
src
->
sample_aspect_ratio
;
dst
->
video
->
interlaced
=
src
->
interlaced_frame
;
dst
->
video
->
top_field_first
=
src
->
top_field_first
;
dst
->
video
->
key_frame
=
src
->
key_frame
;
dst
->
video
->
pict_type
=
src
->
pict_type
;
break
;
case
AVMEDIA_TYPE_AUDIO
:
dst
->
audio
->
sample_rate
=
src
->
sample_rate
;
dst
->
audio
->
channel_layout
=
src
->
channel_layout
;
break
;
default:
return
AVERROR
(
EINVAL
);
}
return
0
;
}
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