From: Andreas Ă–man Date: Sun, 10 Feb 2008 21:11:05 +0000 (+0000) Subject: dont enqueue h264 frames if we dont have locked DTS yet X-Git-Tag: 2.12~1215 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3bca77c2beccc0ce352edcb54b660927ea999bc1;p=thirdparty%2Ftvheadend.git dont enqueue h264 frames if we dont have locked DTS yet --- diff --git a/parsers.c b/parsers.c index be7f5ce00..afa0aaad6 100644 --- a/parsers.c +++ b/parsers.c @@ -632,7 +632,8 @@ parse_h264(th_transport_t *t, th_stream_t *st, size_t len, case 5: /* IDR+SLICE */ case 1: - if(st->st_curpkt != NULL || st->st_frame_duration == 0) + if(st->st_curpkt != NULL || st->st_frame_duration == 0 || + st->st_curdts == AV_NOPTS_VALUE) break; if(t->tht_dts_start == AV_NOPTS_VALUE)