aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/ffmdec.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-10-17 20:14:43 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-10-17 20:14:43 +0200
commit7fd65104f489302188a91af710b7520dc9ba7b04 (patch)
tree883f7bc46956bfd5e061a5a358639cababcf812d /libavformat/ffmdec.c
parent657998b5ee46719ff873ce34ae953385377b0280 (diff)
downloadffmpeg-7fd65104f489302188a91af710b7520dc9ba7b04.tar.gz
ffm_seek: fix division by zero
Fixes CID732202 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/ffmdec.c')
-rw-r--r--libavformat/ffmdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ffmdec.c b/libavformat/ffmdec.c
index 7cbcf2bf2a..66306bf010 100644
--- a/libavformat/ffmdec.c
+++ b/libavformat/ffmdec.c
@@ -443,7 +443,7 @@ static int ffm_seek(AVFormatContext *s, int stream_index, int64_t wanted_pts, in
while (pos_min <= pos_max) {
pts_min = get_dts(s, pos_min);
pts_max = get_dts(s, pos_max);
- if (pts_min > wanted_pts || pts_max < wanted_pts) {
+ if (pts_min > wanted_pts || pts_max <= wanted_pts) {
pos = pts_min > wanted_pts ? pos_min : pos_max;
goto found;
}