summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-25 18:23:05 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2009-01-25 18:23:05 +0000
commit84fbeecf72da4d24cfc7719da03649a6fd530321 (patch)
tree23941f5a06290238483c0f876de7ac0b6e710376 /stream
parent9e48ce48d4f4f6f2425d5ac904302285d1e577b1 (diff)
downloadmpv-84fbeecf72da4d24cfc7719da03649a6fd530321.tar.bz2
mpv-84fbeecf72da4d24cfc7719da03649a6fd530321.tar.xz
Fix a NULL-check that used && instead of || and thus could not avoid crashes.
Patch by Luis Felipe Strano Moraes (luis strano gmail com). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28354 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'stream')
-rw-r--r--stream/freesdp/parser.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stream/freesdp/parser.c b/stream/freesdp/parser.c
index 33bc1d59b5..c17041b7ba 100644
--- a/stream/freesdp/parser.c
+++ b/stream/freesdp/parser.c
@@ -1644,7 +1644,7 @@ const char *
fsdp_get_media_format (const fsdp_media_description_t * dsc,
unsigned int index)
{
- if (!dsc && (index < dsc->formats_count))
+ if (!dsc || (index < dsc->formats_count))
return NULL;
return dsc->formats[index];
}