From 961782275e2afb6c5cc59f5136e368d3063aec65 Mon Sep 17 00:00:00 2001 From: phintuka Date: Thu, 13 Sep 2007 21:18:19 +0000 Subject: Removed unused local variable --- xine_input_vdr.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/xine_input_vdr.c b/xine_input_vdr.c index a7d1dfaa..f56c46e4 100644 --- a/xine_input_vdr.c +++ b/xine_input_vdr.c @@ -4,7 +4,7 @@ * See the main source file 'xineliboutput.c' for copyright information and * how to reach the author. * - * $Id: xine_input_vdr.c,v 1.90 2007-09-13 21:15:59 phintuka Exp $ + * $Id: xine_input_vdr.c,v 1.91 2007-09-13 21:18:19 phintuka Exp $ * */ @@ -4697,13 +4697,12 @@ static off_t vdr_plugin_read (input_plugin_t *this_gen, void *buf_gen, off_t len static int update_frames(vdr_input_plugin_t *this, uint8_t *data, int len) { - int Length = len; int i = 8; - if(!this->I_frames) + if (!this->I_frames) this->P_frames = this->B_frames = 0; i += data[i] + 1; /* possible additional header bytes */ - for (; i < Length-5; i++) { + for (; i < len-5; i++) { if (data[i] == 0 && data[i + 1] == 0 && data[i + 2] == 1 && data[i + 3] == 0) { uint8_t type = ((data[i + 5] >> 3) & 0x07); switch (type) { -- cgit v1.2.3