summaryrefslogtreecommitdiff
path: root/xine_input_vdr.c
diff options
context:
space:
mode:
authorphintuka <phintuka>2007-09-13 21:18:19 +0000
committerphintuka <phintuka>2007-09-13 21:18:19 +0000
commit961782275e2afb6c5cc59f5136e368d3063aec65 (patch)
tree3d6bf29f815e545e3cbb067a5e3175634309bd62 /xine_input_vdr.c
parentf92dd4b054ff76f350678c298bbdeb761b21d981 (diff)
downloadxineliboutput-961782275e2afb6c5cc59f5136e368d3063aec65.tar.gz
xineliboutput-961782275e2afb6c5cc59f5136e368d3063aec65.tar.bz2
Removed unused local variable
Diffstat (limited to 'xine_input_vdr.c')
-rw-r--r--xine_input_vdr.c7
1 files 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) {