diff --git a/libavformat/thp.c b/libavformat/thp.c index 727fb5095c..16fa327002 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -143,6 +143,9 @@ static int thp_read_header(AVFormatContext *s) } } + if (!thp->vst) + return AVERROR_INVALIDDATA; + return 0; }