aboutsummaryrefslogtreecommitdiff
path: root/libavformat/ncdec.c
diff options
context:
space:
mode:
authorVitor Sessak2009-02-08 21:42:06 +0000
committerVitor Sessak2009-02-08 21:42:06 +0000
commitf9e5b9420ea6355b4ae466eb155f6f2abd929393 (patch)
tree4e96aef345b840fb5990ca3c2dae2ab7943a46ad /libavformat/ncdec.c
parent74afdc5535c2eb5352e9688d93f570c64d9d0716 (diff)
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
Diffstat (limited to 'libavformat/ncdec.c')
-rw-r--r--libavformat/ncdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/ncdec.c b/libavformat/ncdec.c
index e6cca1068b..056381b1c2 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);