Mercurial > libavformat.hg
changeset 4419:24d2dfc9086d libavformat
10l: fix compiler warning:
ncdec.c:82: warning: ISO C90 forbids mixed declarations and code
author | vitor |
---|---|
date | Sun, 08 Feb 2009 21:42:06 +0000 |
parents | d5119d75439d |
children | 14797a347fcb |
files | ncdec.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ncdec.c Sun Feb 08 21:14:46 2009 +0000 +++ b/ncdec.c Sun Feb 08 21:42:06 2009 +0000 @@ -62,6 +62,7 @@ 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 @@ 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);