diff options
author | Limin Wang <lance.lmwang@gmail.com> | 2020-11-04 20:09:02 +0800 |
---|---|---|
committer | Limin Wang <lance.lmwang@gmail.com> | 2020-11-11 18:32:56 +0800 |
commit | 001ccbc5ccf0791e2aa9d583b9b527adc9a62e82 (patch) | |
tree | 072bf028d316abf3591437f308ef33f9396a01d1 /libavformat/rtsp.c | |
parent | 9e2872bc67f74b3014794ce0a0a79bbb4e6fbcfa (diff) | |
download | ffmpeg-001ccbc5ccf0791e2aa9d583b9b527adc9a62e82.tar.gz |
avformat/rtsp: prefer to use variable instead of type
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
Diffstat (limited to 'libavformat/rtsp.c')
-rw-r--r-- | libavformat/rtsp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 3675045dbc..9c693f1115 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -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); |