transcoding: resync pts when audio frames are dropped.
This commit is contained in:
parent
12e542b7f4
commit
7dd6a7beb8
1 changed files with 1 additions and 0 deletions
|
@ -283,6 +283,7 @@ transcoder_stream_audio(transcoder_stream_t *ts, th_pkt_t *pkt)
|
|||
if (pkt->pkt_pts > as->aud_dec_pts) {
|
||||
tvhlog(LOG_WARNING, "transcode", "Detected framedrop in audio");
|
||||
as->aud_enc_pts += (pkt->pkt_pts - as->aud_dec_pts);
|
||||
as->aud_dec_pts += (pkt->pkt_pts - as->aud_dec_pts);
|
||||
}
|
||||
|
||||
pkt = pkt_merge_header(pkt);
|
||||
|
|
Loading…
Add table
Reference in a new issue