Browse Source

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>
tags/n1.1
Mans Rullgard 12 years ago
parent
commit
366484fff1
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/smjpegdec.c

+ 2
- 1
libavformat/smjpegdec.c View 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;


Loading…
Cancel
Save