From: Andreas Ă–man Date: Mon, 6 Jul 2009 19:37:53 +0000 (+0000) Subject: Use av_write_frame() instead of av_interleaved_write_frame() X-Git-Tag: 2.12~610 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=47d8db11e43ef7e93d13cedf0cc1277f9d0dae4f;p=thirdparty%2Ftvheadend.git 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. --- diff --git a/src/dvr/dvr_rec.c b/src/dvr/dvr_rec.c index 57e5c736b..d3533bb45 100644 --- a/src/dvr/dvr_rec.c +++ b/src/dvr/dvr_rec.c @@ -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;