Use av_write_frame() instead of av_interleaved_write_frame()
It seems the interleaver can screw up if something happens to the source feed streams.
This commit is contained in:
parent
b37177433c
commit
47d8db11e4
1 changed files with 1 additions and 1 deletions
|
@ -616,7 +616,7 @@ dvr_thread_new_pkt(dvr_entry_t *de, th_pkt_t *pkt)
|
|||
avpkt.duration =
|
||||
av_rescale_q(pkt->pkt_duration, AV_TIME_BASE_Q, st->time_base);
|
||||
avpkt.flags = pkt->pkt_frametype >= PKT_P_FRAME ? 0 : PKT_FLAG_KEY;
|
||||
r = av_interleaved_write_frame(fctx, &avpkt);
|
||||
r = av_write_frame(fctx, &avpkt);
|
||||
break;
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue