summaryrefslogtreecommitdiffstats
path: root/libmpcodecs
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-25 22:06:05 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2010-02-25 22:06:05 +0000
commit5a2289137f43501281dba83fe98b5f67be63f9ef (patch)
tree0d928246faf77e6e03adbb5ba7757e88d6e05121 /libmpcodecs
parentadc345131f947569f9b6e490119ad9969c09529e (diff)
downloadmpv-5a2289137f43501281dba83fe98b5f67be63f9ef.tar.bz2
mpv-5a2289137f43501281dba83fe98b5f67be63f9ef.tar.xz
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
Diffstat (limited to 'libmpcodecs')
-rw-r--r--libmpcodecs/ad_hwmpa.c2
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;