ncdec.c:82: warning: ISO C90 forbids mixed declarations and code
Originally committed as revision 17075 to svn://svn.ffmpeg.org/ffmpeg/trunk
| ... | ... |
@@ -62,6 +62,7 @@ static int nc_read_header(AVFormatContext *s, AVFormatParameters *ap) |
| 62 | 62 |
static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) |
| 63 | 63 |
{
|
| 64 | 64 |
int size; |
| 65 |
+ int ret; |
|
| 65 | 66 |
|
| 66 | 67 |
uint32_t state=-1; |
| 67 | 68 |
while (state != NC_VIDEO_FLAG) {
|
| ... | ... |
@@ -79,7 +80,7 @@ static int nc_read_packet(AVFormatContext *s, AVPacket *pkt) |
| 79 | 79 |
return AVERROR(EAGAIN); |
| 80 | 80 |
} |
| 81 | 81 |
|
| 82 |
- int ret = av_get_packet(s->pb, pkt, size); |
|
| 82 |
+ ret = av_get_packet(s->pb, pkt, size); |
|
| 83 | 83 |
if (ret != size) {
|
| 84 | 84 |
if (ret > 0) av_free_packet(pkt); |
| 85 | 85 |
return AVERROR(EIO); |