[FFmpeg-cvslog] avformat/hdsenc: fix unintentional integer overflow in hds_write_packet()
Michael Niedermayer
git at videolan.org
Wed Dec 11 16:41:36 CET 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Dec 11 16:33:26 2013 +0100| [572965c9a6b8173d918dea392aadfee1d44d7f47] | committer: Michael Niedermayer
avformat/hdsenc: fix unintentional integer overflow in hds_write_packet()
Fixes CID1135762
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=572965c9a6b8173d918dea392aadfee1d44d7f47
---
libavformat/hdsenc.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libavformat/hdsenc.c b/libavformat/hdsenc.c
index c9b7bcd..7569b8f 100644
--- a/libavformat/hdsenc.c
+++ b/libavformat/hdsenc.c
@@ -518,7 +518,7 @@ static int hds_write_packet(AVFormatContext *s, AVPacket *pkt)
HDSContext *c = s->priv_data;
AVStream *st = s->streams[pkt->stream_index];
OutputStream *os = &c->streams[s->streams[pkt->stream_index]->id];
- int64_t end_dts = (os->fragment_index) * c->min_frag_duration;
+ int64_t end_dts = (os->fragment_index) * (int64_t)c->min_frag_duration;
int ret;
if (st->first_dts == AV_NOPTS_VALUE)
More information about the ffmpeg-cvslog
mailing list