summaryrefslogtreecommitdiffstats
path: root/sub_cc.c
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-11 17:10:18 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:44 +0200
commit5b8366e05113ae8c146c46b76760f2f85912c0e6 (patch)
tree4224df862b42f0cfbaf200c11b364b19310187b4 /sub_cc.c
parent45d5565493ac850548351801557329c15fa95cdd (diff)
downloadmpv-5b8366e05113ae8c146c46b76760f2f85912c0e6.tar.bz2
mpv-5b8366e05113ae8c146c46b76760f2f85912c0e6.tar.xz
sub_cc: remote pointless assignments
Remove pointless assignments that would assign the value it already was initialized to. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31710 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'sub_cc.c')
-rw-r--r--sub_cc.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sub_cc.c b/sub_cc.c
index d9df7358a3..53502a3d62 100644
--- a/sub_cc.c
+++ b/sub_cc.c
@@ -300,7 +300,6 @@ static void subcc_decode(unsigned char *inputbuffer, unsigned int inputlength)
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 *inputbuffer, unsigned int inputlength)
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 *inputbuffer, unsigned int inputlength)
//#ifdef LOG_DEBUG
fprintf(stderr, "Unknown CC encoding: %x\n", cc_code);
//#endif
- skip = 2;
break;
}
current += skip;