} ThpDemuxContext;
-static int thp_probe(AVProbeData *p)
+static int thp_probe(const AVProbeData *p)
{
double d;
/* check file header */
}
}
+ if (!thp->vst)
+ return AVERROR_INVALIDDATA;
+
return 0;
}
if (ret < 0)
return ret;
if (ret != size) {
- av_packet_unref(pkt);
return AVERROR(EIO);
}
if (ret < 0)
return ret;
if (ret != thp->audiosize) {
- av_packet_unref(pkt);
return AVERROR(EIO);
}