Browse Source

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: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
Michael Niedermayer 12 years ago
parent
commit
6ab1166c77
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      libavformat/nutdec.c

+ 2
- 1
libavformat/nutdec.c View File

@@ -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;



Loading…
Cancel
Save