mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 01:39:16 -04:00
Port rtsp fixes from multimedia/ffmpeg changeset r427233
MFH: 2016Q4
This commit is contained in:
parent
8b43d8e4be
commit
0101602007
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=427637
3 changed files with 47 additions and 2 deletions
|
@ -3,7 +3,7 @@
|
||||||
|
|
||||||
PORTNAME= mencoder
|
PORTNAME= mencoder
|
||||||
PORTVERSION= ${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
PORTVERSION= ${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
||||||
PORTREVISION= 1
|
PORTREVISION= 2
|
||||||
CATEGORIES= multimedia audio
|
CATEGORIES= multimedia audio
|
||||||
|
|
||||||
MAINTAINER= riggs@FreeBSD.org
|
MAINTAINER= riggs@FreeBSD.org
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
MPLAYER_PORT_VERSION= 1.3.0
|
MPLAYER_PORT_VERSION= 1.3.0
|
||||||
MPLAYER_SNAPSHOT_DATE= 2016-09-12
|
MPLAYER_SNAPSHOT_DATE= 2016-09-12
|
||||||
PORTREVISION?= 2
|
PORTREVISION?= 3
|
||||||
MASTER_SITES= LOCAL/riggs/mplayer
|
MASTER_SITES= LOCAL/riggs/mplayer
|
||||||
DISTNAME= mplayer-${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
DISTNAME= mplayer-${MPLAYER_PORT_VERSION}.${MPLAYER_SNAPSHOT_DATE:S/-//g}
|
||||||
WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE}
|
WRKSRC= ${WRKDIR}/mplayer-export-${MPLAYER_SNAPSHOT_DATE}
|
||||||
|
|
45
multimedia/mplayer/files/patch-ffmpeg_libavformat_rtsp.c
Normal file
45
multimedia/mplayer/files/patch-ffmpeg_libavformat_rtsp.c
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
--- ffmpeg/libavformat/rtsp.c.orig 2016-08-05 16:20:04 UTC
|
||||||
|
+++ ffmpeg/libavformat/rtsp.c
|
||||||
|
@@ -1613,7 +1613,12 @@ int ff_rtsp_make_setup_request(AVFormatC
|
||||||
|
}
|
||||||
|
if (ttl > 0)
|
||||||
|
snprintf(optbuf, sizeof(optbuf), "?ttl=%d", ttl);
|
||||||
|
- getnameinfo((struct sockaddr*) &addr, sizeof(addr),
|
||||||
|
+ getnameinfo((struct sockaddr*) &addr,
|
||||||
|
+#if HAVE_STRUCT_SOCKADDR_SA_LEN
|
||||||
|
+ ((struct sockaddr*) &addr)->sa_len,
|
||||||
|
+#else
|
||||||
|
+ sizeof(addr),
|
||||||
|
+#endif
|
||||||
|
namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
|
||||||
|
ff_url_join(url, sizeof(url), "rtp", NULL, namebuf,
|
||||||
|
port, "%s", optbuf);
|
||||||
|
@@ -1829,8 +1834,13 @@ redirect:
|
||||||
|
goto fail;
|
||||||
|
}
|
||||||
|
if (!getpeername(tcp_fd, (struct sockaddr*) &peer, &peer_len)) {
|
||||||
|
- getnameinfo((struct sockaddr*) &peer, peer_len, host, sizeof(host),
|
||||||
|
- NULL, 0, NI_NUMERICHOST);
|
||||||
|
+ getnameinfo((struct sockaddr*) &peer,
|
||||||
|
+#if HAVE_STRUCT_SOCKADDR_SA_LEN
|
||||||
|
+ ((struct sockaddr*) &peer)->sa_len,
|
||||||
|
+#else
|
||||||
|
+ peer_len,
|
||||||
|
+#endif
|
||||||
|
+ host, sizeof(host), NULL, 0, NI_NUMERICHOST);
|
||||||
|
}
|
||||||
|
|
||||||
|
/* request options supported by the server; this also detects server
|
||||||
|
@@ -2309,7 +2319,11 @@ static int sdp_read_header(AVFormatConte
|
||||||
|
AVDictionary *opts = map_to_opts(rt);
|
||||||
|
|
||||||
|
err = getnameinfo((struct sockaddr*) &rtsp_st->sdp_ip,
|
||||||
|
- sizeof(rtsp_st->sdp_ip),
|
||||||
|
+#if HAVE_STRUCT_SOCKADDR_SA_LEN
|
||||||
|
+ ((struct sockaddr*) &rtsp_st->sdp_ip)->sa_len,
|
||||||
|
+#else
|
||||||
|
+ sizeof(rtsp_st->sdp_ip),
|
||||||
|
+#endif
|
||||||
|
namebuf, sizeof(namebuf), NULL, 0, NI_NUMERICHOST);
|
||||||
|
if (err) {
|
||||||
|
av_log(s, AV_LOG_ERROR, "getnameinfo: %s\n", gai_strerror(err));
|
Loading…
Add table
Reference in a new issue