[MPlayer-cvslog] r28354 - trunk/stream/freesdp/parser.c
reimar
subversion at mplayerhq.hu
Sun Jan 25 19:23:05 CET 2009
Author: reimar
Date: Sun Jan 25 19:23:05 2009
New Revision: 28354
Log:
Fix a NULL-check that used && instead of || and thus could not avoid crashes.
Patch by Luis Felipe Strano Moraes (luis strano gmail com).
Modified:
trunk/stream/freesdp/parser.c
Modified: trunk/stream/freesdp/parser.c
==============================================================================
--- trunk/stream/freesdp/parser.c Sun Jan 25 13:03:28 2009 (r28353)
+++ trunk/stream/freesdp/parser.c Sun Jan 25 19:23:05 2009 (r28354)
@@ -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];
}
More information about the MPlayer-cvslog
mailing list