[FFmpeg-cvslog] nutdec: fix type of intermediate variable for ts calculation.
Michael Niedermayer
git at videolan.org
Fri Sep 21 06:34:19 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Fri Sep 21 06:27:38 2012 +0200| [6ab1166c770fb279ba4ac8dba13d53c4842efd4f] | committer: 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: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=6ab1166c770fb279ba4ac8dba13d53c4842efd4f
---
libavformat/nutdec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 397e44f..becf7a4 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;
More information about the ffmpeg-cvslog
mailing list