From 3bca77c2beccc0ce352edcb54b660927ea999bc1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20=C3=96man?= Date: Sun, 10 Feb 2008 21:11:05 +0000 Subject: [PATCH] dont enqueue h264 frames if we dont have locked DTS yet --- parsers.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/parsers.c b/parsers.c index be7f5ce0..afa0aaad 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)