size = AV_RL16(probe_packet->buf + 5);
if (size + 20 > probe_packet->buf_size)
- return 3*AVPROBE_SCORE_MAX/2;
+ return AVPROBE_SCORE_MAX/4;
if (AV_RB32(probe_packet->buf+16+size) == NC_VIDEO_FLAG)
return AVPROBE_SCORE_MAX;
static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int size;
+ int ret;
uint32_t state=-1;
while (state != NC_VIDEO_FLAG) {
return AVERROR(EAGAIN);
}
- int ret = av_get_packet(s->pb, pkt, size);
+ ret = av_get_packet(s->pb, pkt, size);
if (ret != size) {
if (ret > 0) av_free_packet(pkt);
return AVERROR(EIO);