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:
374fdc8
)
flv: Warn only once
author
Luca Barbato
<lu_zero@gentoo.org>
Wed, 23 Apr 2014 19:19:27 +0000
(21:19 +0200)
committer
Luca Barbato
<lu_zero@gentoo.org>
Wed, 23 Apr 2014 19:19:27 +0000
(21:19 +0200)
No point in sending the message multiple time.
libavformat/flvdec.c
patch
|
blob
|
history
diff --git
a/libavformat/flvdec.c
b/libavformat/flvdec.c
index
5a2f348
..
cdb7c36
100644
(file)
--- a/
libavformat/flvdec.c
+++ b/
libavformat/flvdec.c
@@
-896,7
+896,7
@@
skip:
// sign extension
int32_t cts = (avio_rb24(s->pb) + 0xff800000) ^ 0xff800000;
pts = dts + cts;
- if (cts < 0
) { // dts ar
e wrong
+ if (cts < 0
&& !flv->wrong_dts) { // dts might b
e wrong
flv->wrong_dts = 1;
av_log(s, AV_LOG_WARNING,
"Negative cts, previous timestamps might be wrong.\n");