]> git.sesse.net Git - ffmpeg/commitdiff
avformat/rtsp: prefer to use variable instead of type
authorLimin Wang <lance.lmwang@gmail.com>
Wed, 4 Nov 2020 12:09:02 +0000 (20:09 +0800)
committerLimin Wang <lance.lmwang@gmail.com>
Wed, 11 Nov 2020 10:32:56 +0000 (18:32 +0800)
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
libavformat/rtsp.c

index 3675045dbc70b78f3fde13dddcf795d5255cd76a..9c693f11154438991a4475b6f09381c2e3aa005b 100644 (file)
@@ -1982,7 +1982,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
     int runs = rt->initial_timeout * 1000LL / POLLING_TIME;
 
     if (!p) {
-        p = rt->p = av_malloc_array(2 * rt->nb_rtsp_streams + 1, sizeof(struct pollfd));
+        p = rt->p = av_malloc_array(2 * rt->nb_rtsp_streams + 1, sizeof(*p));
         if (!p)
             return AVERROR(ENOMEM);