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
84d4af4e
Commit
84d4af4e
authored
May 14, 2018
by
Zhao Zhili
Committed by
Michael Niedermayer
May 15, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
examples/filtering_video: drop an always true condition
Signed-off-by:
Michael Niedermayer
<
michael@niedermayer.cc
>
parent
989c5a84
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
18 deletions
+16
-18
filtering_video.c
doc/examples/filtering_video.c
+16
-18
No files found.
doc/examples/filtering_video.c
View file @
84d4af4e
...
...
@@ -247,27 +247,25 @@ int main(int argc, char **argv)
goto
end
;
}
if
(
ret
>=
0
)
{
frame
->
pts
=
frame
->
best_effort_timestamp
;
frame
->
pts
=
frame
->
best_effort_timestamp
;
/* push the decoded frame into the filtergraph */
if
(
av_buffersrc_add_frame_flags
(
buffersrc_ctx
,
frame
,
AV_BUFFERSRC_FLAG_KEEP_REF
)
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while feeding the filtergraph
\n
"
);
/* push the decoded frame into the filtergraph */
if
(
av_buffersrc_add_frame_flags
(
buffersrc_ctx
,
frame
,
AV_BUFFERSRC_FLAG_KEEP_REF
)
<
0
)
{
av_log
(
NULL
,
AV_LOG_ERROR
,
"Error while feeding the filtergraph
\n
"
);
break
;
}
/* pull filtered frames from the filtergraph */
while
(
1
)
{
ret
=
av_buffersink_get_frame
(
buffersink_ctx
,
filt_frame
);
if
(
ret
==
AVERROR
(
EAGAIN
)
||
ret
==
AVERROR_EOF
)
break
;
}
/* pull filtered frames from the filtergraph */
while
(
1
)
{
ret
=
av_buffersink_get_frame
(
buffersink_ctx
,
filt_frame
);
if
(
ret
==
AVERROR
(
EAGAIN
)
||
ret
==
AVERROR_EOF
)
break
;
if
(
ret
<
0
)
goto
end
;
display_frame
(
filt_frame
,
buffersink_ctx
->
inputs
[
0
]
->
time_base
);
av_frame_unref
(
filt_frame
);
}
av_frame_unref
(
frame
);
if
(
ret
<
0
)
goto
end
;
display_frame
(
filt_frame
,
buffersink_ctx
->
inputs
[
0
]
->
time_base
);
av_frame_unref
(
filt_frame
);
}
av_frame_unref
(
frame
);
}
}
av_packet_unref
(
&
packet
);
...
...
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