Mercurial > libavformat.hg
comparison avio.h @ 1648:90987914ad57 libavformat
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
author | gpoirier |
---|---|
date | Sun, 14 Jan 2007 22:07:19 +0000 |
parents | 72b0e694b2b7 |
children | eb16c64144ee |
comparison
equal
deleted
inserted
replaced
1647:0a990429e524 | 1648:90987914ad57 |
---|---|
31 struct URLProtocol *prot; | 31 struct URLProtocol *prot; |
32 int flags; | 32 int flags; |
33 int is_streamed; /* true if streamed (no seek possible), default = false */ | 33 int is_streamed; /* true if streamed (no seek possible), default = false */ |
34 int max_packet_size; /* if non zero, the stream is packetized with this max packet size */ | 34 int max_packet_size; /* if non zero, the stream is packetized with this max packet size */ |
35 void *priv_data; | 35 void *priv_data; |
36 #if LIBAVFORMAT_VERSION_INT >= (52<<16) | |
37 char *filename; /* specified filename */ | |
38 #else | |
36 char filename[1]; /* specified filename */ | 39 char filename[1]; /* specified filename */ |
40 #endif | |
37 }; | 41 }; |
38 | 42 |
39 typedef struct URLContext URLContext; | 43 typedef struct URLContext URLContext; |
40 | 44 |
41 typedef struct URLPollEntry { | 45 typedef struct URLPollEntry { |