Mercurial > libavformat.hg
comparison asf.c @ 3000:6b2d05ded051 libavformat
Put is_mms under ifdef CONFIG_MMSH_PROTOCOL, avoids warning:
libavformat/asf.c:112: warning: 'is_mms' defined but not used
author | reimar |
---|---|
date | Sat, 02 Feb 2008 21:17:46 +0000 |
parents | bc099b0e8b6f |
children | 532809e27981 |
comparison
equal
deleted
inserted
replaced
2999:dea83239a88d | 3000:6b2d05ded051 |
---|---|
106 } | 106 } |
107 *q = '\0'; | 107 *q = '\0'; |
108 } | 108 } |
109 #endif | 109 #endif |
110 | 110 |
111 #ifdef CONFIG_MMSH_PROTOCOL | |
111 static int is_mms(ByteIOContext *pb) | 112 static int is_mms(ByteIOContext *pb) |
112 { | 113 { |
113 return url_fileno(pb) && url_fileno(pb)->prot && | 114 return url_fileno(pb) && url_fileno(pb)->prot && |
114 !strcmp(url_fileno(pb)->prot->name, "mmsh"); | 115 !strcmp(url_fileno(pb)->prot->name, "mmsh"); |
115 } | 116 } |
117 #endif | |
116 | 118 |
117 static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size) | 119 static void get_str16_nolen(ByteIOContext *pb, int len, char *buf, int buf_size) |
118 { | 120 { |
119 char* q = buf; | 121 char* q = buf; |
120 len /= 2; | 122 len /= 2; |