Message ID | 1604497047-30429-4-git-send-email-lance.lmwang@gmail.com |
---|---|
State | Accepted |
Commit | 001ccbc5ccf0791e2aa9d583b9b527adc9a62e82 |
Headers | show |
Series | [FFmpeg-devel,1/6] avformat/rtsp: 16384 -> SDP_MAX_SIZE | expand |
Context | Check | Description |
---|---|---|
andriy/x86_make | success | Make finished |
andriy/x86_make_fate | success | Make fate finished |
diff --git a/libavformat/rtsp.c b/libavformat/rtsp.c index 51a360f..3a1afa0 100644 --- a/libavformat/rtsp.c +++ b/libavformat/rtsp.c @@ -1990,7 +1990,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);