Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
2b58c0ef
Commit
2b58c0ef
authored
May 05, 2011
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
IVTC: fix undefined arithmetic
parent
5fc7f1e0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
modules/video_filter/deinterlace/algo_ivtc.c
modules/video_filter/deinterlace/algo_ivtc.c
+2
-2
No files found.
modules/video_filter/deinterlace/algo_ivtc.c
View file @
2b58c0ef
...
@@ -1251,7 +1251,7 @@ static bool IVTCOutputOrDropFrame( filter_t *p_filter, picture_t *p_dst )
...
@@ -1251,7 +1251,7 @@ static bool IVTCOutputOrDropFrame( filter_t *p_filter, picture_t *p_dst )
if
(
op
==
IVTC_OP_DROP_FRAME
)
if
(
op
==
IVTC_OP_DROP_FRAME
)
{
{
/* Bump cadence counter into the next expected position */
/* Bump cadence counter into the next expected position */
p_ivtc
->
i_cadence_pos
=
++
p_ivtc
->
i_cadence_pos
%
5
;
p_ivtc
->
i_cadence_pos
=
(
p_ivtc
->
i_cadence_pos
+
1
)
%
5
;
/* Drop frame. We're done. */
/* Drop frame. We're done. */
return
false
;
return
false
;
...
@@ -1385,7 +1385,7 @@ static bool IVTCOutputOrDropFrame( filter_t *p_filter, picture_t *p_dst )
...
@@ -1385,7 +1385,7 @@ static bool IVTCOutputOrDropFrame( filter_t *p_filter, picture_t *p_dst )
}
}
/* Bump cadence counter into the next expected position. */
/* Bump cadence counter into the next expected position. */
p_ivtc
->
i_cadence_pos
=
++
p_ivtc
->
i_cadence_pos
%
5
;
p_ivtc
->
i_cadence_pos
=
(
p_ivtc
->
i_cadence_pos
+
1
)
%
5
;
}
}
else
if
(
p_ivtc
->
i_mode
==
IVTC_MODE_TELECINED_NTSC_SOFT
)
else
if
(
p_ivtc
->
i_mode
==
IVTC_MODE_TELECINED_NTSC_SOFT
)
{
{
...
...
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