diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2014-09-13 02:00:32 +0200 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2014-09-26 20:56:16 +0200 |
commit | 6cfbe1de5ac6c57c41459626f7ac32841d63ace8 (patch) | |
tree | 4b9f74452bb94bd4639969d310125230e59bf962 /avconv.c | |
parent | 883e98bc25755327565d8ae0f565a6c886f24816 (diff) | |
download | ffmpeg-6cfbe1de5ac6c57c41459626f7ac32841d63ace8.tar.gz |
avconv: Use only audio and video to guess discontinuities
Data and subtitle streams might cause false positive.
Diffstat (limited to 'avconv.c')
-rw-r--r-- | avconv.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -2420,7 +2420,9 @@ static int process_input(void) if (pkt.dts != AV_NOPTS_VALUE) pkt.dts *= ist->ts_scale; - if (pkt.dts != AV_NOPTS_VALUE && ist->next_dts != AV_NOPTS_VALUE && + if ((ist->dec_ctx->codec_type == AVMEDIA_TYPE_VIDEO || + ist->dec_ctx->codec_type == AVMEDIA_TYPE_AUDIO) && + pkt.dts != AV_NOPTS_VALUE && ist->next_dts != AV_NOPTS_VALUE && (is->iformat->flags & AVFMT_TS_DISCONT)) { int64_t pkt_dts = av_rescale_q(pkt.dts, ist->st->time_base, AV_TIME_BASE_Q); int64_t delta = pkt_dts - ist->next_dts; |