OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
657998b
)
ffm_seek: fix division by zero
author
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Oct 2012 18:14:43 +0000
(20:14 +0200)
committer
Michael Niedermayer
<michaelni@gmx.at>
Wed, 17 Oct 2012 18:14:43 +0000
(20:14 +0200)
Fixes CID732202
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/ffmdec.c
patch
|
blob
|
history
diff --git
a/libavformat/ffmdec.c
b/libavformat/ffmdec.c
index
7cbcf2b
..
66306bf
100644
(file)
--- 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;
}