Skip to content

Commit b49957d

Browse files
committed
Apply "Restore DTS correction for VP9 copies"
Applied changes from patch proposed in mailing list to fix yt-dtp conversion errors with webm/vp9 videos: http://ffmpeg.org/pipermail/ffmpeg-devel/2021-May/280189.html
1 parent 848700a commit b49957d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

fftools/ffmpeg.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,6 @@ static void write_packet(OutputFile *of, AVPacket *pkt, OutputStream *ost, int u
823823
}
824824
if ((st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO || st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO || st->codecpar->codec_type == AVMEDIA_TYPE_SUBTITLE) &&
825825
pkt->dts != AV_NOPTS_VALUE &&
826-
!(st->codecpar->codec_id == AV_CODEC_ID_VP9 && ost->stream_copy) &&
827826
ost->last_mux_dts != AV_NOPTS_VALUE) {
828827
int64_t max = ost->last_mux_dts + !(s->oformat->flags & AVFMT_TS_NONSTRICT);
829828
if (pkt->dts < max) {

0 commit comments

Comments
 (0)