smjpeg: fix type of 'ret' variable in smjpeg_read_packet()
authorMans Rullgard <mans@mansr.com>
Thu, 11 Oct 2012 20:53:22 +0000 (21:53 +0100)
committerMans Rullgard <mans@mansr.com>
Fri, 12 Oct 2012 21:21:10 +0000 (22:21 +0100)
The 'ret' variable is used for negative error codes so it should
be a signed type.

Signed-off-by: Mans Rullgard <mans@mansr.com>
libavformat/smjpegdec.c

index 7764c0f..4cbfa2a 100644 (file)
@@ -135,8 +135,9 @@ static int smjpeg_read_header(AVFormatContext *s)
 static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
 {
     SMJPEGContext *sc = s->priv_data;
-    uint32_t dtype, ret, size, timestamp;
+    uint32_t dtype, size, timestamp;
     int64_t pos;
+    int ret;
 
     if (s->pb->eof_reached)
         return AVERROR_EOF;