[FFmpeg-cvslog] avformat/utils: Set stream side-data size even without side-data

Andreas Rheinhardt git at videolan.org
Fri May 22 07:46:14 EEST 2020


ffmpeg | branch: master | Andreas Rheinhardt <andreas.rheinhardt at gmail.com> | Fri May 22 00:08:00 2020 +0200| [38490cbeb3a48dd488f10a72efc8d8e3f8883ac4] | committer: Andreas Rheinhardt

avformat/utils: Set stream side-data size even without side-data

Reviewed-by: James Almer <jamrial at gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at gmail.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=38490cbeb3a48dd488f10a72efc8d8e3f8883ac4
---

 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;
 }
 



More information about the ffmpeg-cvslog mailing list