Mercurial > libavformat.hg
comparison rtsp.c @ 2884:e6e7ba123447 libavformat
Drop RTSP default protocol.
patch by Ronald S. Bultje, rsbultje gmail com
author | diego |
---|---|
date | Wed, 02 Jan 2008 19:40:43 +0000 |
parents | ccbca87ccd5e |
children | 91d65fdf91e1 |
comparison
equal
deleted
inserted
replaced
2883:8991b973d9f8 | 2884:e6e7ba123447 |
---|---|
75 static int rtsp_read_play(AVFormatContext *s); | 75 static int rtsp_read_play(AVFormatContext *s); |
76 | 76 |
77 /* XXX: currently, the only way to change the protocols consists in | 77 /* XXX: currently, the only way to change the protocols consists in |
78 changing this variable */ | 78 changing this variable */ |
79 | 79 |
80 #if LIBAVFORMAT_VERSION_INT < (53 << 16) | |
80 int rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_UDP); | 81 int rtsp_default_protocols = (1 << RTSP_PROTOCOL_RTP_UDP); |
82 #endif | |
81 | 83 |
82 static int rtsp_probe(AVProbeData *p) | 84 static int rtsp_probe(AVProbeData *p) |
83 { | 85 { |
84 if (av_strstart(p->filename, "rtsp:", NULL)) | 86 if (av_strstart(p->filename, "rtsp:", NULL)) |
85 return AVPROBE_SCORE_MAX; | 87 return AVPROBE_SCORE_MAX; |