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:
Andreas Öman 2009-07-06 19:37:53 +00:00
parent b37177433c
commit 47d8db11e4

View file

@ -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;