vp9: add superframe merging bitstream filter.

Fixes ticket 4313.
This commit is contained in:
Ronald S. Bultje
2016-02-29 09:43:07 -05:00
parent 6d8ab358a3
commit 2e6636aa87
6 changed files with 209 additions and 1 deletions

View File

@@ -712,6 +712,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
if(
(avctx->codec_type == AVMEDIA_TYPE_AUDIO || avctx->codec_type == AVMEDIA_TYPE_VIDEO) &&
pkt->dts != AV_NOPTS_VALUE &&
!(avctx->codec_id == AV_CODEC_ID_VP9 && ost->stream_copy) &&
ost->last_mux_dts != AV_NOPTS_VALUE) {
int64_t max = ost->last_mux_dts + !(s->oformat->flags & AVFMT_TS_NONSTRICT);
if (pkt->dts < max) {