[MPlayer-cvslog] r31710 - trunk/sub_cc.c
reimar
subversion at mplayerhq.hu
Sun Jul 11 19:10:18 CEST 2010
Author: reimar
Date: Sun Jul 11 19:10:18 2010
New Revision: 31710
Log:
Remove pointless assignments that would assing the value it already
was initialized to.
Modified:
trunk/sub_cc.c
Modified: trunk/sub_cc.c
==============================================================================
--- trunk/sub_cc.c Sun Jul 11 16:51:51 2010 (r31709)
+++ trunk/sub_cc.c Sun Jul 11 19:10:18 2010 (r31710)
@@ -300,7 +300,6 @@ static void subcc_decode(unsigned char *
case 0xfe:
/* expect 2 byte encoding (perhaps CC3, CC4?) */
/* ignore for time being */
- skip = 2;
break;
case 0xff:
@@ -314,14 +313,11 @@ static void subcc_decode(unsigned char *
case 0x00:
/* This seems to be just padding */
- skip = 2;
break;
case 0x01:
odd_offset = data2 & 0x80;
- if (odd_offset)
- skip = 2;
- else
+ if (!odd_offset)
skip = 5;
break;
@@ -329,7 +325,6 @@ static void subcc_decode(unsigned char *
//#ifdef LOG_DEBUG
fprintf(stderr, "Unknown CC encoding: %x\n", cc_code);
//#endif
- skip = 2;
break;
}
current += skip;
More information about the MPlayer-cvslog
mailing list