} CinDemuxContext;
-static int cin_probe(AVProbeData *p)
+static int cin_probe(const AVProbeData *p)
{
/* header starts with this special marker */
if (AV_RL32(&p->buf[0]) != 0x55AA0000)
ret = avio_read(pb, &pkt->data[4], pkt_size);
if (ret < 0) {
- av_packet_unref(pkt);
return ret;
}
if (ret < pkt_size)