From 900ca4cb3e4ce80050f0f53033eb8ae2f61bcb69 Mon Sep 17 00:00:00 2001 From: diego Date: Sat, 31 Jul 2010 15:22:11 +0000 Subject: [PATCH] demux_ts.c: avoid compiler warning by adding initialization Initialize frame_length variable to zero to avoid the warning: libmpdemux/demux_ts.c:669: warning: 'frame_length' may be used uninitialized in this function git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31874 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpdemux/demux_ts.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmpdemux/demux_ts.c b/libmpdemux/demux_ts.c index ec6718854c..0bd4891c87 100644 --- a/libmpdemux/demux_ts.c +++ b/libmpdemux/demux_ts.c @@ -668,7 +668,7 @@ int mp_a52_framesize(uint8_t * buf, int *srate) //second stage: returns the count of A52 syncwords found static int a52_check(char *buf, int len) { - int cnt, frame_length, ok, srate; + int cnt, frame_length = 0, ok, srate; cnt = ok = 0; if(len < 8)