[FFmpeg-cvslog] smjpeg: fix type of 'ret' variable in smjpeg_read_packet()

Mans Rullgard git at videolan.org
Sat Oct 13 15:48:56 CEST 2012


ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Thu Oct 11 21:53:22 2012 +0100| [366484fff1720977b8591e3a90fbef9f4885e53c] | committer: Mans Rullgard

smjpeg: fix type of 'ret' variable in smjpeg_read_packet()

The 'ret' variable is used for negative error codes so it should
be a signed type.

Signed-off-by: Mans Rullgard <mans at mansr.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=366484fff1720977b8591e3a90fbef9f4885e53c
---

 libavformat/smjpegdec.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c
index 7764c0f..4cbfa2a 100644
--- a/libavformat/smjpegdec.c
+++ b/libavformat/smjpegdec.c
@@ -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;



More information about the ffmpeg-cvslog mailing list