Browse Source

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
tags/v0.5
Vitor Sessak 16 years ago
parent
commit
f9e5b9420e
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/ncdec.c

+ 2
- 1
libavformat/ncdec.c View File

@@ -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);


Loading…
Cancel
Save