OSDN Git Service

Define struct URLContext and typedef it to URLContext in one step.
authorStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 25 May 2009 22:17:27 +0000 (22:17 +0000)
committerStefano Sabatini <stefano.sabatini-lala@poste.it>
Mon, 25 May 2009 22:17:27 +0000 (22:17 +0000)
Originally committed as revision 18948 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/avio.h

index be02b06..a814759 100644 (file)
@@ -41,7 +41,7 @@
  * version bump.
  * sizeof(URLContext) must not be used outside libav*.
  */
-struct URLContext {
+typedef struct URLContext {
 #if LIBAVFORMAT_VERSION_MAJOR >= 53
     const AVClass *av_class; ///< information for av_log(). Set by url_open().
 #endif
@@ -51,9 +51,7 @@ struct URLContext {
     int max_packet_size;  /**< if non zero, the stream is packetized with this max packet size */
     void *priv_data;
     char *filename; /**< specified filename */
-};
-
-typedef struct URLContext URLContext;
+} URLContext;
 
 typedef struct URLPollEntry {
     URLContext *handle;