summaryrefslogtreecommitdiffstats
path: root/libhb/decavcodec.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2016-03-23 11:22:50 -0600
committerJohn Stebbins <[email protected]>2016-03-23 11:22:50 -0600
commit8f2464fe6cb49d23f2191684a70eeae9d948e808 (patch)
tree8eec0039fdf2c3af37082cd47e19a95079af23d1 /libhb/decavcodec.c
parent885c8e4cebfe82abb8802c772015ef8d4eb4a733 (diff)
decavcodec: cosmetics
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r--libhb/decavcodec.c28
1 files changed, 19 insertions, 9 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c
index 0a45b4ca9..f698dde10 100644
--- a/libhb/decavcodec.c
+++ b/libhb/decavcodec.c
@@ -1058,12 +1058,12 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
{
/* Rotate the cadence tracking. */
int i = 0;
- for(i=11; i > 0; i--)
+ for (i = 11; i > 0; i--)
{
cadence[i] = cadence[i-1];
}
- if ( !(flags & PROGRESSIVE) && !(flags & TOP_FIRST) )
+ if (!(flags & PROGRESSIVE) && !(flags & TOP_FIRST))
{
/* Not progressive, not top first...
That means it's probably bottom
@@ -1072,7 +1072,7 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
//hb_log("MPEG2 Flag: Bottom field first, 2 fields displayed.");
cadence[0] = BT;
}
- else if ( !(flags & PROGRESSIVE) && (flags & TOP_FIRST) )
+ else if (!(flags & PROGRESSIVE) && (flags & TOP_FIRST))
{
/* Not progressive, top is first,
Two fields displayed.
@@ -1080,7 +1080,8 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
//hb_log("MPEG2 Flag: Top field first, 2 fields displayed.");
cadence[0] = TB;
}
- else if ( (flags & PROGRESSIVE) && !(flags & TOP_FIRST) && !( flags & REPEAT_FIRST ) )
+ else if ((flags & PROGRESSIVE) &&
+ !(flags & TOP_FIRST) && !(flags & REPEAT_FIRST))
{
/* Progressive, but noting else.
That means Bottom first,
@@ -1089,7 +1090,8 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
//hb_log("MPEG2 Flag: Progressive. Bottom field first, 2 fields displayed.");
cadence[0] = BT_PROG;
}
- else if ( (flags & PROGRESSIVE) && !(flags & TOP_FIRST) && ( flags & REPEAT_FIRST ) )
+ else if ((flags & PROGRESSIVE) &&
+ !(flags & TOP_FIRST) && (flags & REPEAT_FIRST))
{
/* Progressive, and repeat. .
That means Bottom first,
@@ -1098,7 +1100,8 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
//hb_log("MPEG2 Flag: Progressive repeat. Bottom field first, 3 fields displayed.");
cadence[0] = BTB_PROG;
}
- else if ( (flags & PROGRESSIVE) && (flags & TOP_FIRST) && !( flags & REPEAT_FIRST ) )
+ else if ((flags & PROGRESSIVE) &&
+ (flags & TOP_FIRST) && !(flags & REPEAT_FIRST))
{
/* Progressive, top first.
That means top first,
@@ -1107,7 +1110,8 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
//hb_log("MPEG2 Flag: Progressive. Top field first, 2 fields displayed.");
cadence[0] = TB_PROG;
}
- else if ( (flags & PROGRESSIVE) && (flags & TOP_FIRST) && ( flags & REPEAT_FIRST ) )
+ else if ((flags & PROGRESSIVE) &&
+ (flags & TOP_FIRST) && (flags & REPEAT_FIRST))
{
/* Progressive, top, repeat.
That means top first,
@@ -1117,10 +1121,16 @@ static void checkCadence( int * cadence, uint16_t flags, int64_t start )
cadence[0] = TBT_PROG;
}
- if ( (cadence[2] <= TB) && (cadence[1] <= TB) && (cadence[0] > TB) && (cadence[11]) )
+ if ((cadence[2] <= TB) && (cadence[1] <= TB) &&
+ (cadence[0] > TB) && (cadence[11]))
+ {
hb_log("%fs: Video -> Film", (float)start / 90000);
- if ( (cadence[2] > TB) && (cadence[1] <= TB) && (cadence[0] <= TB) && (cadence[11]) )
+ }
+ if ((cadence[2] > TB) && (cadence[1] <= TB) &&
+ (cadence[0] <= TB) && (cadence[11]))
+ {
hb_log("%fs: Film -> Video", (float)start / 90000);
+ }
}
// send cc_buf to the CC decoder(s)