diff options
author | Ronald S. Bultje <rsbultje@gmail.com> | 2007-01-14 22:07:19 +0000 |
---|---|---|
committer | Guillaume Poirier <gpoirier@mplayerhq.hu> | 2007-01-14 22:07:19 +0000 |
commit | 621810045cc0b5174e0243796026eb622b985a6c (patch) | |
tree | 5c478df1ae0f76a616ff40c60ed1bab3dbb3ce4e /libavformat/avio.h | |
parent | fb2b4fc50a5aa549f4f30e93f53636c16be7f729 (diff) | |
download | ffmpeg-621810045cc0b5174e0243796026eb622b985a6c.tar.gz |
makes the filename member of the URLContext a pointer, so that the
structure can be extended in the future without breaking ABI.
patch by Ronald S. Bultje % rbultje A ronald P bitfreak P net %
Original thread:
Date: Jan 1, 2007 6:01 PM
Subject: [Ffmpeg-devel] make URLContext->filename a pointer
Originally committed as revision 7506 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avio.h')
-rw-r--r-- | libavformat/avio.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/avio.h b/libavformat/avio.h index 3f733f0a71..f44d52694f 100644 --- a/libavformat/avio.h +++ b/libavformat/avio.h @@ -33,7 +33,11 @@ struct URLContext { int is_streamed; /* true if streamed (no seek possible), default = false */ int max_packet_size; /* if non zero, the stream is packetized with this max packet size */ void *priv_data; +#if LIBAVFORMAT_VERSION_INT >= (52<<16) + char *filename; /* specified filename */ +#else char filename[1]; /* specified filename */ +#endif }; typedef struct URLContext URLContext; |