url_write is part of the public API so it may not be under ifdef.
Also fixes a compile error if all muxers and protocols are disabled. Patch by Guillaume LECERF (foxcore gmail com) Originally committed as revision 11469 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
9656df7994
commit
727601bc4b
@ -110,7 +110,6 @@ int url_read(URLContext *h, unsigned char *buf, int size)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(CONFIG_MUXERS) || defined(CONFIG_PROTOCOLS)
|
|
||||||
int url_write(URLContext *h, unsigned char *buf, int size)
|
int url_write(URLContext *h, unsigned char *buf, int size)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
@ -122,7 +121,6 @@ int url_write(URLContext *h, unsigned char *buf, int size)
|
|||||||
ret = h->prot->url_write(h, buf, size);
|
ret = h->prot->url_write(h, buf, size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
#endif //CONFIG_MUXERS || CONFIG_PROTOCOLS
|
|
||||||
|
|
||||||
offset_t url_seek(URLContext *h, offset_t pos, int whence)
|
offset_t url_seek(URLContext *h, offset_t pos, int whence)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user