Commit 6ab1166c authored by Michael Niedermayer's avatar Michael Niedermayer

nutdec: fix type of intermediate variable for ts calculation.

Prior to this it could theoretically become negative and read
out of array.
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 3dc24600
......@@ -527,7 +527,8 @@ static int decode_syncpoint(NUTContext *nut, int64_t *ts, int64_t *back_ptr)
{
AVFormatContext *s = nut->avf;
AVIOContext *bc = s->pb;
int64_t end, tmp;
int64_t end;
uint64_t tmp;
nut->last_syncpoint_pos = avio_tell(bc) - 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment