diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-04-26 17:49:22 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-05-06 23:02:00 +0800 |
commit | fa21df2bd42d95fe37b418dc4726d7fc26b1f27a (patch) | |
tree | 27d57e659a6dea5a45aa5e16e7031414bb73a415 /libavformat/rtmpproto.c | |
parent | 1a944563907b0a8dc1aa9231dc42d8fc8eeb2de4 (diff) | |
download | ffmpeg-fa21df2bd42d95fe37b418dc4726d7fc26b1f27a.tar.gz |
avformat/rtmpproto: use av_reallocp_array()
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtmpproto.c')
-rw-r--r-- | libavformat/rtmpproto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtmpproto.c b/libavformat/rtmpproto.c index 42aacbd1b9..e23426b770 100644 --- a/libavformat/rtmpproto.c +++ b/libavformat/rtmpproto.c @@ -163,7 +163,7 @@ static int add_tracked_method(RTMPContext *rt, const char *name, int id) if (rt->nb_tracked_methods + 1 > rt->tracked_methods_size) { rt->tracked_methods_size = (rt->nb_tracked_methods + 1) * 2; - if ((err = av_reallocp(&rt->tracked_methods, rt->tracked_methods_size * + if ((err = av_reallocp_array(&rt->tracked_methods, rt->tracked_methods_size, sizeof(*rt->tracked_methods))) < 0) { rt->nb_tracked_methods = 0; rt->tracked_methods_size = 0; |