diff --git a/libavformat/thp.c b/libavformat/thp.c index bc4f0dafe5a913b54fe4dcdf8dfe1398adc8c9ee..714cec6cd32485ab26070307b5084eb56d8c5c7f 100644 --- a/libavformat/thp.c +++ b/libavformat/thp.c @@ -98,7 +98,7 @@ static int thp_read_header(AVFormatContext *s) for (i = 0; i < thp->compcount; i++) { if (thp->components[i] == 0) { - if (thp->vst != 0) + if (thp->vst) break; /* Video component. */