diff --git a/libavformat/thp.c b/libavformat/thp.c index 76b9b3820c..38db4da89a 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; }