mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/rtsp: prefer to use variable instead of type
Signed-off-by: Limin Wang <lance.lmwang@gmail.com>
This commit is contained in:
parent
9e2872bc67
commit
001ccbc5cc
|
@ -1982,7 +1982,7 @@ static int udp_read_packet(AVFormatContext *s, RTSPStream **prtsp_st,
|
||||||
int runs = rt->initial_timeout * 1000LL / POLLING_TIME;
|
int runs = rt->initial_timeout * 1000LL / POLLING_TIME;
|
||||||
|
|
||||||
if (!p) {
|
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)
|
if (!p)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue