Mercurial > mplayer.hg
changeset 31797:895706bb6e5c
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
author | diego |
---|---|
date | Sat, 31 Jul 2010 15:22:11 +0000 |
parents | a6abbb323d04 |
children | 2d9044967a46 |
files | libmpdemux/demux_ts.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpdemux/demux_ts.c Sat Jul 31 15:17:17 2010 +0000 +++ b/libmpdemux/demux_ts.c Sat Jul 31 15:22:11 2010 +0000 @@ -666,7 +666,7 @@ //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)