Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-09-21 08:27:38 +0400
committerMichael Niedermayer <michaelni@gmx.at>2012-09-21 08:27:38 +0400
commit6ab1166c770fb279ba4ac8dba13d53c4842efd4f (patch)
tree89c224430361d5cadb84c21570bc2eaf49ca1792 /libavformat
parent3dc24600ba7956360f29c7fed21b3c437bee42b7 (diff)
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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/nutdec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 397e44ff4d..becf7a44d7 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -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;