summaryrefslogtreecommitdiff
path: root/libavformat/smjpegdec.c
diff options
context:
space:
mode:
authorMans Rullgard <mans@mansr.com>2012-10-11 21:53:22 +0100
committerMans Rullgard <mans@mansr.com>2012-10-12 22:21:10 +0100
commit366484fff1720977b8591e3a90fbef9f4885e53c (patch)
tree1cc0829e75751fa28d9afa5cea324cc55f25e596 /libavformat/smjpegdec.c
parent7e76fc528d60bad588bfba82c7c38b3991de48d0 (diff)
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@mansr.com>
Diffstat (limited to 'libavformat/smjpegdec.c')
-rw-r--r--libavformat/smjpegdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/smjpegdec.c b/libavformat/smjpegdec.c
index 7764c0f34d..4cbfa2a580 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;