1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-02-20 07:48:15 +02:00
FFmpeg/libavformat
Alfred E. Heggestad d550a28560 dashenc: check pts to prevent division by zero error
this usecase will cause a division by zero trap:

1. dashenc has received one frame
2. os->max_pts and os->start_pts have same value
3. delta between max_pts and start_pts is 0
4. av_rescale_q(0, x, y) returns 0
5. this value is used as denominator in division
6. Bang! -> segfault

this fix checks that max_pts > start_pts.
the fix has been tested and works.

Signed-off-by: Alfred E. Heggestad <alfred.heggestad@gmail.com>
Reviewed-by: Jeyapal, Karthick <kjeyapal@akamai.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2020-01-31 10:15:37 -03:00
..
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-25 22:10:47 +01:00
2019-10-29 16:20:33 +01:00
2019-12-12 19:25:33 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2020-01-26 17:24:41 +01:00
2019-12-11 16:24:16 +01:00
2019-12-12 19:25:33 +01:00
2020-01-30 19:58:45 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-01-26 17:24:41 +01:00
2019-12-12 19:25:33 +01:00
2019-11-27 23:54:20 +01:00
2019-12-12 19:25:33 +01:00
2020-01-08 01:32:26 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2019-12-12 19:25:33 +01:00
2020-01-29 21:55:47 +01:00
2019-12-12 19:25:33 +01:00
2020-01-23 12:08:20 +05:30
2020-01-08 01:32:26 +01:00
2020-01-07 22:35:52 -03:00
2019-12-12 19:25:33 +01:00