summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libavformat/thp.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/thp.c b/libavformat/thp.c
index 332ed79128..d3ae86c645 100644
--- a/libavformat/thp.c
+++ b/libavformat/thp.c
@@ -145,6 +145,9 @@ static int thp_read_header(AVFormatContext *s)
}
}
+ if (!thp->vst)
+ return AVERROR_INVALIDDATA;
+
return 0;
}