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
06e7301a
Commit
06e7301a
authored
Oct 01, 2013
by
Vittorio Giovara
Committed by
Anton Khirnov
Oct 02, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vf_interlace: do not process an already interlaced frame
Signed-off-by:
Anton Khirnov
<
anton@khirnov.net
>
parent
628a17d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
vf_interlace.c
libavfilter/vf_interlace.c
+10
-0
No files found.
libavfilter/vf_interlace.c
View file @
06e7301a
...
...
@@ -181,6 +181,16 @@ static int filter_frame(AVFilterLink *inlink, AVFrame *buf)
if
(
!
s
->
cur
||
!
s
->
next
)
return
0
;
if
(
s
->
cur
->
interlaced_frame
)
{
av_log
(
ctx
,
AV_LOG_WARNING
,
"video is already interlaced, adjusting framerate only
\n
"
);
out
=
av_frame_clone
(
s
->
cur
);
out
->
pts
/=
2
;
// adjust pts to new framerate
ret
=
ff_filter_frame
(
outlink
,
out
);
s
->
got_output
=
1
;
return
ret
;
}
tff
=
(
s
->
scan
==
MODE_TFF
);
out
=
ff_get_video_buffer
(
outlink
,
outlink
->
w
,
outlink
->
h
);
if
(
!
out
)
...
...
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