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; }