|
Added
Link Here
|
| 1 |
Obtained from https://git.alpinelinux.org/aports/tree/community/nymphcast/ffmpeg6.patch |
| 2 |
diff --git a/src/server/ffplay/cmdutils.c.bak b/src/server/ffplay/cmdutils.c.bak |
| 3 |
index 0e8561a..ab0b166 100644 |
| 4 |
--- ffplay/cmdutils.c.bak |
| 5 |
+++ ffplay/cmdutils.c.bak |
| 6 |
@@ -719,7 +719,7 @@ static void init_parse_context(OptionParseContext *octx, |
| 7 |
memset(octx, 0, sizeof(*octx)); |
| 8 |
|
| 9 |
octx->nb_groups = nb_groups; |
| 10 |
- octx->groups = av_mallocz_array(octx->nb_groups, sizeof(*octx->groups)); |
| 11 |
+ octx->groups = av_calloc(octx->nb_groups, sizeof(*octx->groups)); |
| 12 |
if (!octx->groups) |
| 13 |
exit_program(1); |
| 14 |
|
| 15 |
diff --git a/src/server/ffplay/stream_handler.cpp b/src/server/ffplay/stream_handler.cpp |
| 16 |
index f6db69a..27d9fcd 100644 |
| 17 |
--- ffplay/stream_handler.cpp |
| 18 |
+++ ffplay/stream_handler.cpp |
| 19 |
@@ -137,7 +137,7 @@ AVDictionary **setup_find_stream_info_opts(AVFormatContext *s, AVDictionary *cod |
| 20 |
int i; |
| 21 |
AVDictionary **opts; |
| 22 |
if (!s->nb_streams) { return NULL; } |
| 23 |
- opts = (AVDictionary**) av_mallocz_array(s->nb_streams, sizeof(*opts)); |
| 24 |
+ opts = (AVDictionary**) av_calloc(s->nb_streams, sizeof(*opts)); |
| 25 |
if (!opts) { |
| 26 |
av_log(NULL, AV_LOG_ERROR, "Could not alloc memory for stream options.\n"); |
| 27 |
return NULL; |