avformat/utils: ignore outlier durations on subtitle/data streams as well
authorAman Gupta <aman@tmm1.net>
Thu, 19 Apr 2018 20:29:24 +0000 (13:29 -0700)
committerAman Gupta <aman@tmm1.net>
Fri, 20 Apr 2018 19:12:07 +0000 (12:12 -0700)
commitfd6e89586c01d068fc8d2cea24292bf8ae836f74
treee20a8aa004138b7937ebcd110473c3bf35a0a39a
parent30940be3593aee6144a9d238f25eef1aa4575c41
avformat/utils: ignore outlier durations on subtitle/data streams as well

Similar to 4c9c4fe8b21, but for durations. This fixes #7151, where
the report duration and bitrate on a mpegts stream is wildly off
due to the dvb_teletext stream's timings.

Signed-off-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/utils.c