diff options
author | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-25 22:06:05 +0000 |
---|---|---|
committer | reimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-02-25 22:06:05 +0000 |
commit | 5a2289137f43501281dba83fe98b5f67be63f9ef (patch) | |
tree | 0d928246faf77e6e03adbb5ba7757e88d6e05121 | |
parent | adc345131f947569f9b6e490119ad9969c09529e (diff) |
Fix check for wrong variable: len can be unitialized but not normally < 0,
the return value needs to be checked to detect an error.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30732 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r-- | libmpcodecs/ad_hwmpa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpcodecs/ad_hwmpa.c b/libmpcodecs/ad_hwmpa.c index fe804e1e13..30caa9b0f9 100644 --- a/libmpcodecs/ad_hwmpa.c +++ b/libmpcodecs/ad_hwmpa.c @@ -151,7 +151,7 @@ static int control(sh_audio_t *sh,int cmd,void* arg, ...) return CONTROL_FALSE; case ADCTRL_SKIP_FRAME: start = mpa_sync(sh, 2, &len, NULL, NULL, NULL, NULL, NULL); - if(len < 0) + if(start < 0) return CONTROL_FALSE; sh->a_in_buffer_len -= start; |