[FFmpeg-cvslog] avformat/rtsp: prefer to use variable instead of type
Limin Wang
git at videolan.org
Wed Nov 11 12:41:17 EET 2020
ffmpeg | branch: master | Limin Wang <lance.lmwang at gmail.com> | Wed Nov 4 20:09:02 2020 +0800| [001ccbc5ccf0791e2aa9d583b9b527adc9a62e82] | committer: Limin Wang
avformat/rtsp: prefer to use variable instead of type
Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=001ccbc5ccf0791e2aa9d583b9b527adc9a62e82
---
libavformat/rtsp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the ffmpeg-cvslog
mailing list