[FFmpeg-devel] [PATCH 2/2] avformat/dashdec: Increase size of id buffer

Andreas Rheinhardt andreas.rheinhardt at gmail.com
Tue Mar 2 12:38:48 EET 2021


The current size is not enough, see e.g.
http://ftp.itec.aau.at/datasets/DASHDataset2014/TearsOfSteel/1sec/TearsOfSteel_1s_simple_2014_05_09.mpd

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>
---
I don't know if there is a fixed size limit or not (probably not),
but 32 is able to accomodate everything I found.

 libavformat/dashdec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c
index 3a12aefa68..6b43fd6278 100644
--- a/libavformat/dashdec.c
+++ b/libavformat/dashdec.c
@@ -82,7 +82,7 @@ struct representation {
     AVFormatContext *ctx;
     int stream_index;
 
-    char id[20];
+    char id[32];
     char *lang;
     int bandwidth;
     AVRational framerate;
-- 
2.27.0



More information about the ffmpeg-devel mailing list