Commit 6552e23d authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/mpegtsenc: fix dts for chained muxing aac in mpegts

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent dad54e4a
......@@ -1270,6 +1270,8 @@ static int mpegts_write_packet_internal(AVFormatContext *s, AVPacket *pkt)
av_init_packet(&pkt2);
pkt2.data = pkt->data;
pkt2.size = pkt->size;
av_assert0(pkt->dts != AV_NOPTS_VALUE);
pkt2.dts = av_rescale_q(pkt->dts, st->time_base, ts_st->amux->streams[0]->time_base);
ret = avio_open_dyn_buf(&ts_st->amux->pb);
if (ret < 0)
return AVERROR(ENOMEM);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment