summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordiego <diego@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-07-31 15:22:11 +0000
committerUoti Urpala <uau@glyph.nonexistent.invalid>2010-11-02 04:14:46 +0200
commit900ca4cb3e4ce80050f0f53033eb8ae2f61bcb69 (patch)
tree209515e35a69490ff1ddff1ab4db96f151e84f36
parent7d7f3345e7b871cf63daae6dac9a4c46d233360f (diff)
downloadmpv-900ca4cb3e4ce80050f0f53033eb8ae2f61bcb69.tar.bz2
mpv-900ca4cb3e4ce80050f0f53033eb8ae2f61bcb69.tar.xz
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
-rw-r--r--libmpdemux/demux_ts.c2
1 files changed, 1 insertions, 1 deletions
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)