]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
dont enqueue h264 frames if we dont have locked DTS yet
authorAndreas Öman <andreas@lonelycoder.com>
Sun, 10 Feb 2008 21:11:05 +0000 (21:11 +0000)
committerAndreas Öman <andreas@lonelycoder.com>
Sun, 10 Feb 2008 21:11:05 +0000 (21:11 +0000)
parsers.c

index be7f5ce00188b3a771fd895fb14328f6a2920539..afa0aaad6b0abe716b2ccb1b1f7163b0429fdada 100644 (file)
--- 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)