Skip to content
Snippets Groups Projects
Commit 366484ff authored by Mans Rullgard's avatar Mans Rullgard
Browse files

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: default avatarMans Rullgard <mans@mansr.com>
parent 7e76fc52
No related branches found
No related tags found
No related merge requests found
...@@ -135,8 +135,9 @@ static int smjpeg_read_header(AVFormatContext *s) ...@@ -135,8 +135,9 @@ static int smjpeg_read_header(AVFormatContext *s)
static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt) static int smjpeg_read_packet(AVFormatContext *s, AVPacket *pkt)
{ {
SMJPEGContext *sc = s->priv_data; SMJPEGContext *sc = s->priv_data;
uint32_t dtype, ret, size, timestamp; uint32_t dtype, size, timestamp;
int64_t pos; int64_t pos;
int ret;
if (s->pb->eof_reached) if (s->pb->eof_reached)
return AVERROR_EOF; return AVERROR_EOF;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment