From 469a170135542d1266ecb9bb489a357f29e14869 Mon Sep 17 00:00:00 2001 From: Paul B Mahol Date: Wed, 4 Feb 2015 13:10:53 +0000 Subject: [PATCH] avformat/siff: fix if_( style Signed-off-by: Paul B Mahol --- libavformat/siff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/siff.c b/libavformat/siff.c index 8901e1ee48..83ff8be3c3 100644 --- a/libavformat/siff.c +++ b/libavformat/siff.c @@ -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);