source: titan/libeplayer3/tmp/ffmpeg/patches/3.2.2/000003_allow_to_choose_rtmp_impl_at_runtime.patch @ 40360

Last change on this file since 40360 was 40360, checked in by obi, 7 years ago

cleanup

File size: 5.4 KB
  • ffmpeg-3.2.

    diff -uNr ffmpeg-3.2.2/configure ffmpeg-3.2.2_both_rtmp/configure
    old new  
    29342934# protocols
    29352935async_protocol_deps="threads"
    29362936bluray_protocol_deps="libbluray"
    2937 ffrtmpcrypt_protocol_deps="!librtmp_protocol"
    29382937ffrtmpcrypt_protocol_deps_any="gcrypt gmp openssl"
    29392938ffrtmpcrypt_protocol_select="tcp_protocol"
    2940 ffrtmphttp_protocol_deps="!librtmp_protocol"
    29412939ffrtmphttp_protocol_select="http_protocol"
    29422940ftp_protocol_select="tcp_protocol"
    29432941gopher_protocol_select="network"
     
    29542952libssh_protocol_deps="libssh"
    29552953mmsh_protocol_select="http_protocol"
    29562954mmst_protocol_select="network"
    2957 rtmp_protocol_deps="!librtmp_protocol"
    2958 rtmp_protocol_select="tcp_protocol"
    2959 rtmpe_protocol_select="ffrtmpcrypt_protocol"
    2960 rtmps_protocol_deps="!librtmp_protocol"
    2961 rtmps_protocol_select="tls_protocol"
    2962 rtmpt_protocol_select="ffrtmphttp_protocol"
    2963 rtmpte_protocol_select="ffrtmpcrypt_protocol ffrtmphttp_protocol"
    2964 rtmpts_protocol_select="ffrtmphttp_protocol https_protocol"
     2955ffrtmp_protocol_select="tcp_protocol"
     2956ffrtmpe_protocol_select="ffrtmpcrypt_protocol"
     2957ffrtmps_protocol_select="tls_protocol"
     2958ffrtmpt_protocol_select="ffrtmphttp_protocol"
     2959ffrtmpte_protocol_select="ffrtmpcrypt_protocol ffrtmphttp_protocol"
     2960ffrtmpts_protocol_select="ffrtmphttp_protocol https_protocol"
    29652961rtp_protocol_select="udp_protocol"
    29662962sctp_protocol_deps="struct_sctp_event_subscribe struct_msghdr_msg_flags"
    29672963sctp_protocol_select="network"
  • libavformat/Makefile

    diff -Naur ffmpeg-3.2.2/libavformat/Makefile ffmpeg-3.2.2_both_rtmp/libavformat/Makefile
    old new  
    553553OBJS-$(CONFIG_MMSH_PROTOCOL)             += mmsh.o mms.o asf.o
    554554OBJS-$(CONFIG_MMST_PROTOCOL)             += mmst.o mms.o asf.o
    555555OBJS-$(CONFIG_PIPE_PROTOCOL)             += file.o
    556 OBJS-$(CONFIG_RTMP_PROTOCOL)             += rtmpproto.o rtmppkt.o
    557 OBJS-$(CONFIG_RTMPE_PROTOCOL)            += rtmpproto.o rtmppkt.o
    558 OBJS-$(CONFIG_RTMPS_PROTOCOL)            += rtmpproto.o rtmppkt.o
    559 OBJS-$(CONFIG_RTMPT_PROTOCOL)            += rtmpproto.o rtmppkt.o
    560 OBJS-$(CONFIG_RTMPTE_PROTOCOL)           += rtmpproto.o rtmppkt.o
    561 OBJS-$(CONFIG_RTMPTS_PROTOCOL)           += rtmpproto.o rtmppkt.o
     556OBJS-$(CONFIG_FFRTMP_PROTOCOL)             += rtmpproto.o rtmppkt.o
     557OBJS-$(CONFIG_FFRTMPE_PROTOCOL)            += rtmpproto.o rtmppkt.o
     558OBJS-$(CONFIG_FFRTMPS_PROTOCOL)            += rtmpproto.o rtmppkt.o
     559OBJS-$(CONFIG_FFRTMPT_PROTOCOL)            += rtmpproto.o rtmppkt.o
     560OBJS-$(CONFIG_FFRTMPTE_PROTOCOL)           += rtmpproto.o rtmppkt.o
     561OBJS-$(CONFIG_FFRTMPTS_PROTOCOL)           += rtmpproto.o rtmppkt.o
    562562OBJS-$(CONFIG_RTP_PROTOCOL)              += rtpproto.o
    563563OBJS-$(CONFIG_SCTP_PROTOCOL)             += sctp.o
    564564OBJS-$(CONFIG_SRTP_PROTOCOL)             += srtpproto.o srtp.o
  • libavformat/protocols.c

    diff -Naur ffmpeg-3.2.2/libavformat/protocols.c ffmpeg-3.2.2_both_rtmp/libavformat/protocols.c
    old new  
    4343extern const URLProtocol ff_mmst_protocol;
    4444extern const URLProtocol ff_md5_protocol;
    4545extern const URLProtocol ff_pipe_protocol;
    46 extern const URLProtocol ff_rtmp_protocol;
    47 extern const URLProtocol ff_rtmpe_protocol;
    48 extern const URLProtocol ff_rtmps_protocol;
    49 extern const URLProtocol ff_rtmpt_protocol;
    50 extern const URLProtocol ff_rtmpte_protocol;
    51 extern const URLProtocol ff_rtmpts_protocol;
     46extern const URLProtocol ff_ffrtmp_protocol;
     47extern const URLProtocol ff_ffrtmpe_protocol;
     48extern const URLProtocol ff_ffrtmps_protocol;
     49extern const URLProtocol ff_ffrtmpt_protocol;
     50extern const URLProtocol ff_ffrtmpte_protocol;
     51extern const URLProtocol ff_ffrtmpts_protocol;
    5252extern const URLProtocol ff_rtp_protocol;
    5353extern const URLProtocol ff_sctp_protocol;
    5454extern const URLProtocol ff_srtp_protocol;
  • libavformat/rtmpproto.c

    diff -Naur ffmpeg-3.2.2/libavformat/rtmpproto.c ffmpeg-3.2.2_both_rtmp/libavformat/rtmpproto.c
    old new  
    25782578static int rtmp_open(URLContext *s, const char *uri, int flags)
    25792579{
    25802580    RTMPContext *rt = s->priv_data;
    2581     char proto[8], hostname[256], path[1024], auth[100], *fname;
     2581    char *proto, tmpProto[10], hostname[256], path[1024], auth[100], *fname;
    25822582    char *old_app, *qmark, *n, fname_buffer[1024];
    25832583    uint8_t buf[2048];
    25842584    int port;
     
    25902590
    25912591    rt->is_input = !(flags & AVIO_FLAG_WRITE);
    25922592
    2593     av_url_split(proto, sizeof(proto), auth, sizeof(auth),
     2593    memset(tmpProto, 0, sizeof(tmpProto)); proto = &tmpProto[2]; av_url_split(tmpProto, sizeof(tmpProto), auth, sizeof(auth),
    25942594                 hostname, sizeof(hostname), &port,
    25952595                 path, sizeof(path), s->filename);
    25962596
     
    31243124};
    31253125
    31263126
    3127 RTMP_PROTOCOL(rtmp)
    3128 RTMP_PROTOCOL(rtmpe)
    3129 RTMP_PROTOCOL(rtmps)
    3130 RTMP_PROTOCOL(rtmpt)
    3131 RTMP_PROTOCOL(rtmpte)
    3132 RTMP_PROTOCOL(rtmpts)
     3127RTMP_PROTOCOL(ffrtmp)
     3128RTMP_PROTOCOL(ffrtmpe)
     3129RTMP_PROTOCOL(ffrtmps)
     3130RTMP_PROTOCOL(ffrtmpt)
     3131RTMP_PROTOCOL(ffrtmpte)
     3132RTMP_PROTOCOL(ffrtmpts)
Note: See TracBrowser for help on using the repository browser.