[FFmpeg-devel] [PATCH] libavformat/dashenc.c:make a sample Latency element

Siyuan Huang saber.huang at samsung.com
Fri May 29 10:19:41 EEST 2020


according iso 23009-1 4th , one Latency element should contain

referenceId , target , max ,min atrributes

 

Signed-off-by: SiyuanHuang <saber.huang at samsung.com>

---

libavformat/dashenc.c | 2 +-

1 file changed, 1 insertion(+), 1 deletion(-)

 

diff --git a/libavformat/dashenc.c b/libavformat/dashenc.c

index f71c1364b4..df081ce3ef 100755

--- a/libavformat/dashenc.c

+++ b/libavformat/dashenc.c

@@ -1211,7 +1211,7 @@ static int write_manifest(AVFormatContext *s, int
final)

     avio_printf(out, "\t<ServiceDescription id=\"0\">\n");

     if (!final && c->target_latency && c->target_latency_refid >= 0) {

-        avio_printf(out, "\t\t<Latency target=\"%"PRId64"\"",
c->target_latency / 1000);

+        avio_printf(out, "\t\t<Latency referenceId=\"0\" target=\"%" PRId64
"\" max=\"3000\" min=\"1000\"", c->target_latency / 1000);

         if (s->nb_streams > 1)

             avio_printf(out, " referenceId=\"%d\"",
c->target_latency_refid);

         avio_printf(out, "/>\n");

-- 

2.17.1

 



More information about the ffmpeg-devel mailing list