[FFmpeg-cvslog] r17075 - trunk/libavformat/ncdec.c

vitor subversion
Sun Feb 8 22:42:07 CET 2009


Author: vitor
Date: Sun Feb  8 22:42:06 2009
New Revision: 17075

Log:
10l: fix compiler warning

Modified:
   trunk/libavformat/ncdec.c

Modified: trunk/libavformat/ncdec.c
==============================================================================
--- trunk/libavformat/ncdec.c	Sun Feb  8 22:23:15 2009	(r17074)
+++ trunk/libavformat/ncdec.c	Sun Feb  8 22:42:06 2009	(r17075)
@@ -62,6 +62,7 @@ static int nc_read_header(AVFormatContex
 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(AVFormatContex
         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);




More information about the ffmpeg-cvslog mailing list