aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-20 20:45:32 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-20 20:45:32 +0200
commit73581afe01b41d0028afb6b14f5493568cf1be3d (patch)
tree4f17a5762c1db5f00a91f5999f93221f3dbb6df7
parentd633e15d7d939f532326e2bc92097b12eba4d5ae (diff)
downloadffmpeg-73581afe01b41d0028afb6b14f5493568cf1be3d.tar.gz
nutdec: fix integer overflow
Fixes CID700575 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavformat/nutdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nutdec.c b/libavformat/nutdec.c
index 492d5c83dc..1ba79ebcbf 100644
--- a/libavformat/nutdec.c
+++ b/libavformat/nutdec.c
@@ -789,7 +789,7 @@ static int decode_frame_header(NUTContext *nut, int64_t *pts, int *stream_id,
if (coded_pts < (1 << stc->msb_pts_shift)) {
*pts = ff_lsb2full(stc, coded_pts);
} else
- *pts = coded_pts - (1 << stc->msb_pts_shift);
+ *pts = coded_pts - (1LL << stc->msb_pts_shift);
} else
*pts = stc->last_pts + pts_delta;
if (flags & FLAG_SIZE_MSB)