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
8ad54a44
Commit
8ad54a44
authored
Sep 12, 2012
by
Nicolas George
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: check that buffer and link properties match.
parent
c262ddb8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
audio.c
libavfilter/audio.c
+4
-0
video.c
libavfilter/video.c
+4
-0
No files found.
libavfilter/audio.c
View file @
8ad54a44
...
...
@@ -225,6 +225,10 @@ int ff_filter_samples(AVFilterLink *link, AVFilterBufferRef *samplesref)
int
nb_channels
=
av_get_channel_layout_nb_channels
(
link
->
channel_layout
);
int
ret
=
0
;
av_assert1
(
samplesref
->
format
==
link
->
format
);
av_assert1
(
samplesref
->
audio
->
channel_layout
==
link
->
channel_layout
);
av_assert1
(
samplesref
->
audio
->
sample_rate
==
link
->
sample_rate
);
if
(
!
link
->
min_samples
||
(
!
pbuf
&&
insamples
>=
link
->
min_samples
&&
insamples
<=
link
->
max_samples
))
{
...
...
libavfilter/video.c
View file @
8ad54a44
...
...
@@ -249,6 +249,10 @@ int ff_start_frame(AVFilterLink *link, AVFilterBufferRef *picref)
FF_TPRINTF_START
(
NULL
,
start_frame
);
ff_tlog_link
(
NULL
,
link
,
0
);
ff_tlog
(
NULL
,
" "
);
ff_tlog_ref
(
NULL
,
picref
,
1
);
av_assert1
(
picref
->
format
==
link
->
format
);
av_assert1
(
picref
->
video
->
w
==
link
->
w
);
av_assert1
(
picref
->
video
->
h
==
link
->
h
);
if
(
link
->
closed
)
{
avfilter_unref_buffer
(
picref
);
return
AVERROR_EOF
;
...
...
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