avformat/flvdec: discard inconsistent timestamps
Fixes Ticket3425
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit dbc3e1109c)
Conflicts:
libavformat/flvdec.c
This commit is contained in:
committed by
Carl Eugen Hoyos
parent
fb44a3e4a3
commit
f31682f2f2
@@ -815,6 +815,10 @@ retry_duration:
|
||||
if (cts < 0) { // dts are wrong
|
||||
flv->wrong_dts = 1;
|
||||
av_log(s, AV_LOG_WARNING, "negative cts, previous timestamps might be wrong\n");
|
||||
} else if (FFABS(dts - pts) > 1000*60*15) {
|
||||
av_log(s, AV_LOG_WARNING,
|
||||
"invalid timestamps %"PRId64" %"PRId64"\n", dts, pts);
|
||||
dts = pts = AV_NOPTS_VALUE;
|
||||
}
|
||||
if (flv->wrong_dts)
|
||||
dts = AV_NOPTS_VALUE;
|
||||
|
||||
Reference in New Issue
Block a user