[SCM] libav/experimental: Define struct URLContext and typedef it to URLContext in one step.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 16:46:32 UTC 2013


The following commit has been merged in the experimental branch:
commit 597b4b3f0327fe13c274508e78e2c947ff13ada3
Author: Stefano Sabatini <stefano.sabatini-lala at poste.it>
Date:   Mon May 25 22:17:27 2009 +0000

    Define struct URLContext and typedef it to URLContext in one step.
    
    Originally committed as revision 18948 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavformat/avio.h b/libavformat/avio.h
index be02b06..a814759 100644
--- a/libavformat/avio.h
+++ b/libavformat/avio.h
@@ -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;

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list