提交 4d65da42 编写于 作者: R Reimar Döffinger

Put is_mms under ifdef CONFIG_MMSH_PROTOCOL, avoids warning:

libavformat/asf.c:112: warning: 'is_mms' defined but not used

Originally committed as revision 11815 to svn://svn.ffmpeg.org/ffmpeg/trunk
上级 b630a39e
...@@ -108,11 +108,13 @@ static void get_str16(ByteIOContext *pb, char *buf, int buf_size) ...@@ -108,11 +108,13 @@ static void get_str16(ByteIOContext *pb, char *buf, int buf_size)
} }
#endif #endif
#ifdef CONFIG_MMSH_PROTOCOL
static int is_mms(ByteIOContext *pb) static int is_mms(ByteIOContext *pb)
{ {
return url_fileno(pb) && url_fileno(pb)->prot && return url_fileno(pb) && url_fileno(pb)->prot &&
!strcmp(url_fileno(pb)->prot->name, "mmsh"); !strcmp(url_fileno(pb)->prot->name, "mmsh");
} }
#endif
static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size) static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册