]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
10l: fix compiler warning
authorvitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 8 Feb 2009 21:42:06 +0000 (21:42 +0000)
committervitor <vitor@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sun, 8 Feb 2009 21:42:06 +0000 (21:42 +0000)
git-svn-id: file:///var/local/repositories/ffmpeg/trunk@17075 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/ncdec.c

index e6cca1068b18dac5d490a81f555d73fa4d77e878..056381b1c228629497072cb5ccd2512cc7cbb741 100644 (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);