Browse Source

ffm_seek: fix division by zero

Fixes CID732202
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.1
Michael Niedermayer 13 years ago
parent
commit
7fd65104f4
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      libavformat/ffmdec.c

+ 1
- 1
libavformat/ffmdec.c View File

@@ -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;
}


Loading…
Cancel
Save