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:
6071551
)
lavf/jacosubdec: fix FPE in case timeres is badly set.
author
Clément Bœsch
<ubitux@gmail.com>
Fri, 29 Jun 2012 17:38:09 +0000
(19:38 +0200)
committer
Clément Bœsch
<ubitux@gmail.com>
Fri, 29 Jun 2012 18:19:59 +0000
(20:19 +0200)
libavformat/jacosubdec.c
patch
|
blob
|
history
diff --git
a/libavformat/jacosubdec.c
b/libavformat/jacosubdec.c
index
4c82650
..
cc4b978
100644
(file)
--- a/
libavformat/jacosubdec.c
+++ b/
libavformat/jacosubdec.c
@@
-219,7
+219,10
@@
static int jacosub_read_header(AVFormatContext *s)
break;
case 'T': // ...but must be placed after TIMERES
jacosub->timeres = strtol(p, NULL, 10);
- av_bprintf(&header, "#T %s", p);
+ if (!jacosub->timeres)
+ jacosub->timeres = 30;
+ else
+ av_bprintf(&header, "#T %s", p);
break;
}
}