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
96668944
Commit
96668944
authored
Jul 26, 2013
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
buffersink: K&R formatting cosmetics
parent
979e9e8f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
21 deletions
+19
-21
buffersink.c
libavfilter/buffersink.c
+19
-21
No files found.
libavfilter/buffersink.c
View file @
96668944
...
@@ -36,7 +36,7 @@
...
@@ -36,7 +36,7 @@
typedef
struct
{
typedef
struct
{
AVFrame
*
cur_frame
;
///< last frame delivered on the sink
AVFrame
*
cur_frame
;
///< last frame delivered on the sink
AVAudioFifo
*
audio_fifo
;
///< FIFO for audio samples
AVAudioFifo
*
audio_fifo
;
///< FIFO for audio samples
int64_t
next_pts
;
///< interpolating audio pts
int64_t
next_pts
;
///< interpolating audio pts
}
BufferSinkContext
;
}
BufferSinkContext
;
...
@@ -96,7 +96,6 @@ static int read_from_fifo(AVFilterContext *ctx, AVFrame *frame,
...
@@ -96,7 +96,6 @@ static int read_from_fifo(AVFilterContext *ctx, AVFrame *frame,
av_frame_free
(
&
tmp
);
av_frame_free
(
&
tmp
);
return
0
;
return
0
;
}
}
int
attribute_align_arg
av_buffersink_get_samples
(
AVFilterContext
*
ctx
,
int
attribute_align_arg
av_buffersink_get_samples
(
AVFilterContext
*
ctx
,
...
@@ -135,7 +134,6 @@ int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx,
...
@@ -135,7 +134,6 @@ int attribute_align_arg av_buffersink_get_samples(AVFilterContext *ctx,
}
}
return
ret
;
return
ret
;
}
}
#if FF_API_AVFILTERBUFFER
#if FF_API_AVFILTERBUFFER
...
@@ -204,7 +202,7 @@ int attribute_align_arg av_buffersink_read(AVFilterContext *ctx, AVFilterBufferR
...
@@ -204,7 +202,7 @@ int attribute_align_arg av_buffersink_read(AVFilterContext *ctx, AVFilterBufferR
}
}
int
attribute_align_arg
av_buffersink_read_samples
(
AVFilterContext
*
ctx
,
AVFilterBufferRef
**
buf
,
int
attribute_align_arg
av_buffersink_read_samples
(
AVFilterContext
*
ctx
,
AVFilterBufferRef
**
buf
,
int
nb_samples
)
int
nb_samples
)
{
{
return
compat_read
(
ctx
,
buf
,
nb_samples
);
return
compat_read
(
ctx
,
buf
,
nb_samples
);
}
}
...
@@ -212,40 +210,40 @@ int attribute_align_arg av_buffersink_read_samples(AVFilterContext *ctx, AVFilte
...
@@ -212,40 +210,40 @@ int attribute_align_arg av_buffersink_read_samples(AVFilterContext *ctx, AVFilte
static
const
AVFilterPad
avfilter_vsink_buffer_inputs
[]
=
{
static
const
AVFilterPad
avfilter_vsink_buffer_inputs
[]
=
{
{
{
.
name
=
"default"
,
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
filter_frame
=
filter_frame
,
.
filter_frame
=
filter_frame
,
.
needs_fifo
=
1
.
needs_fifo
=
1
},
},
{
NULL
}
{
NULL
}
};
};
AVFilter
avfilter_vsink_buffer
=
{
AVFilter
avfilter_vsink_buffer
=
{
.
name
=
"buffersink"
,
.
name
=
"buffersink"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Buffer video frames, and make them available to the end of the filter graph."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Buffer video frames, and make them available to the end of the filter graph."
),
.
priv_size
=
sizeof
(
BufferSinkContext
),
.
priv_size
=
sizeof
(
BufferSinkContext
),
.
uninit
=
uninit
,
.
uninit
=
uninit
,
.
inputs
=
avfilter_vsink_buffer_inputs
,
.
inputs
=
avfilter_vsink_buffer_inputs
,
.
outputs
=
NULL
,
.
outputs
=
NULL
,
};
};
static
const
AVFilterPad
avfilter_asink_abuffer_inputs
[]
=
{
static
const
AVFilterPad
avfilter_asink_abuffer_inputs
[]
=
{
{
{
.
name
=
"default"
,
.
name
=
"default"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
filter_frame
=
filter_frame
,
.
filter_frame
=
filter_frame
,
.
needs_fifo
=
1
.
needs_fifo
=
1
},
},
{
NULL
}
{
NULL
}
};
};
AVFilter
avfilter_asink_abuffer
=
{
AVFilter
avfilter_asink_abuffer
=
{
.
name
=
"abuffersink"
,
.
name
=
"abuffersink"
,
.
description
=
NULL_IF_CONFIG_SMALL
(
"Buffer audio frames, and make them available to the end of the filter graph."
),
.
description
=
NULL_IF_CONFIG_SMALL
(
"Buffer audio frames, and make them available to the end of the filter graph."
),
.
priv_size
=
sizeof
(
BufferSinkContext
),
.
priv_size
=
sizeof
(
BufferSinkContext
),
.
uninit
=
uninit
,
.
uninit
=
uninit
,
.
inputs
=
avfilter_asink_abuffer_inputs
,
.
inputs
=
avfilter_asink_abuffer_inputs
,
.
outputs
=
NULL
,
.
outputs
=
NULL
,
};
};
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