From f9e5b9420ea6355b4ae466eb155f6f2abd929393 Mon Sep 17 00:00:00 2001 From: Vitor Sessak Date: Sun, 8 Feb 2009 21:42:06 +0000 Subject: [PATCH] 10l: fix compiler warning: ncdec.c:82: warning: ISO C90 forbids mixed declarations and code Originally committed as revision 17075 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/ncdec.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c index e6cca10..056381b 100644 --- a/libavformat/ncdec.c +++ b/libavformat/ncdec.c @@ -62,6 +62,7 @@ static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap) static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) { int size; + int ret; uint32_t state=-1; while (state != NC_VIDEO_FLAG) { @@ -79,7 +80,7 @@ static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) 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); -- 2.7.4