ncdec.c:82: warning: ISO C90 forbids mixed declarations and code
Originally committed as revision 17075 to svn://svn.ffmpeg.org/ffmpeg/trunk
static int nc_read_packet(AVFormatContext *s, AVPacket *pkt)
{
int size;
+ int ret;
uint32_t state=-1;
while (state != NC_VIDEO_FLAG) {
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);