From 38490cbeb3a48dd488f10a72efc8d8e3f8883ac4 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Fri, 22 May 2020 00:08:00 +0200 Subject: [PATCH] avformat/utils: Set stream side-data size even without side-data Reviewed-by: James Almer Signed-off-by: Andreas Rheinhardt --- libavformat/utils.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavformat/utils.c b/libavformat/utils.c index e6158d8058..b12aff5eb0 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -5507,6 +5507,8 @@ uint8_t *av_stream_get_side_data(const AVStream *st, return st->side_data[i].data; } } + if (size) + *size = 0; return NULL; }