From b3d7fda700c3a71a6d4f081563ef5f0a7c851770 Mon Sep 17 00:00:00 2001
From: smallishzulu <alikizil@gmail.com>
Date: Mon, 14 Nov 2016 13:13:05 +0200
Subject: [PATCH 2/2] UDP MPEGTS Fixing timestamps while filling queue

---
 libavformat/udp.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/libavformat/udp.c b/libavformat/udp.c
index b850ac9..fad23c0 100644
--- a/libavformat/udp.c
+++ b/libavformat/udp.c
@@ -588,6 +588,10 @@ static void *circular_buffer_task_tx( void *_URLContext)
                 goto end;
             }
             len=av_fifo_size(s->fifo);
+
+	    /* Fixing timestamps while filling */
+	    target_timestamp = av_gettime_relative();
+            start_timestamp = av_gettime_relative();
         }
 
         av_fifo_generic_read(s->fifo, tmp, 4, NULL);
-- 
1.9.1

