projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2cf8355
)
Fix end time of last chapter in compute_chapters_end
author
John Stebbins
<stebbins@jetheaddev.com>
Mon, 23 May 2011 21:26:54 +0000
(14:26 -0700)
committer
Anton Khirnov
<anton@khirnov.net>
Wed, 25 May 2011 13:55:48 +0000
(15:55 +0200)
Parenthesis are misplaced in calculation of max_time.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
libavformat/utils.c
patch
|
blob
|
history
diff --git
a/libavformat/utils.c
b/libavformat/utils.c
index
ad22601
..
8cdd8b3
100644
(file)
--- a/
libavformat/utils.c
+++ b/
libavformat/utils.c
@@
-2110,7
+2110,7
@@
enum CodecID av_codec_get_id(const AVCodecTag * const *tags, unsigned int tag)
static void compute_chapters_end(AVFormatContext *s)
{
unsigned int i, j;
- int64_t max_time = s->duration + (
s->start_time == AV_NOPTS_VALUE) ? 0 : s->start_time
;
+ int64_t max_time = s->duration + (
(s->start_time == AV_NOPTS_VALUE) ? 0 : s->start_time)
;
for (i = 0; i < s->nb_chapters; i++)
if (s->chapters[i]->end == AV_NOPTS_VALUE) {