avformat/siff: fix if_( style
Signed-off-by: Paul B Mahol <onemda@gmail.com>
This commit is contained in:
parent
ba4fba8f48
commit
469a170135
@ -210,7 +210,7 @@ static int siff_read_packet(AVFormatContext *s, AVPacket *pkt)
|
||||
if (!c->curstrm) {
|
||||
size = c->pktsize - c->sndsize - c->gmcsize - 2;
|
||||
size = ffio_limit(s->pb, size);
|
||||
if(size < 0 || c->pktsize < c->sndsize)
|
||||
if (size < 0 || c->pktsize < c->sndsize)
|
||||
return AVERROR_INVALIDDATA;
|
||||
if (av_new_packet(pkt, size + c->gmcsize + 2) < 0)
|
||||
return AVERROR(ENOMEM);
|
||||
|
Loading…
x
Reference in New Issue
Block a user