Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
BC
public
external
ffmpeg
Commits
cd0faeee
Commit
cd0faeee
authored
Jun 17, 2013
by
Vittorio Giovara
Committed by
Luca Barbato
Jun 17, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: math typo in interlace filter
Signed-off-by:
Luca Barbato
<
lu_zero@gentoo.org
>
parent
ee16a0ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
libavfilter/vf_interlace.c
libavfilter/vf_interlace.c
+1
-1
No files found.
libavfilter/vf_interlace.c
View file @
cd0faeee
...
...
@@ -150,7 +150,7 @@ static void copy_picture_field(AVFrame *src_frame, AVFrame *dst_frame,
srcp_below
=
srcp
;
// there is no line below
for
(
i
=
0
;
i
<
linesize
;
i
++
)
{
// this calculation is an integer representation of
// '0.5 * current + 0.25 * above + 0.25
+
below'
// '0.5 * current + 0.25 * above + 0.25
*
below'
// '1 +' is for rounding.
dstp
[
i
]
=
(
1
+
srcp
[
i
]
+
srcp
[
i
]
+
srcp_above
[
i
]
+
srcp_below
[
i
])
>>
2
;
}
...
...
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