mirror of https://github.com/mpv-player/mpv
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
This commit is contained in:
parent
7d7f3345e7
commit
900ca4cb3e
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue