summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
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];
}