aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-07-09 18:34:01 +0200
committerMichael Niedermayer <michaelni@gmx.at>2013-07-09 19:06:32 +0200
commitf9d7431272f41288a118799b0e843e98d8c4ea93 (patch)
treeb0cd05ba8475b96381ade9eb3379a5a3c1e06b14 /libavformat/avformat.h
parentd5de1231954e91ecff5837f4c4846fccf5dc44bb (diff)
downloadffmpeg-f9d7431272f41288a118799b0e843e98d8c4ea93.tar.gz
avformat/AVFormatContext: Move fields down to match the fork
avconv uses private and internal fields from libavformat, we thus must match the layout even of the fields marked non public. Otherwise ffmpegs libavformat could not be used as a dropin replacement on debian/ubuntu The current soname of libavformat was not part of any release nor are any fields marked public moved thus in theory no installed shared lib ABI breakage should occur. Still the need for this change is unfortunate and chilling. If you installed shared libs from a recent development version of libavformat that is more recent than the last release. You probably want to check or rebuild applications that linked to it. minor versions of avformat & avdevice are bumped to allow detecting this as both use the updated struct Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h46
1 files changed, 23 insertions, 23 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index bd911ecfda..04fad94219 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -740,19 +740,6 @@ typedef struct AVStream {
*/
AVPacket attached_pic;
- /**
- * Real base framerate of the stream.
- * This is the lowest framerate with which all timestamps can be
- * represented accurately (it is the least common multiple of all
- * framerates in the stream). Note, this value is just a guess!
- * For example, if the time base is 1/90000 and all frames have either
- * approximately 3600 or 1800 timer ticks, then r_frame_rate will be 50/1.
- *
- * Code outside avformat should access this field using:
- * av_stream_get/set_r_frame_rate(stream)
- */
- AVRational r_frame_rate;
-
/*****************************************************************
* All fields below this line are not part of the public API. They
* may not be used outside of libavformat and can be changed and
@@ -813,16 +800,6 @@ typedef struct AVStream {
*/
int codec_info_nb_frames;
- /**
- * Stream Identifier
- * This is the MPEG-TS stream identifier +1
- * 0 means unknown
- */
- int stream_identifier;
-
- int64_t interleaver_chunk_size;
- int64_t interleaver_chunk_duration;
-
/* av_read_frame() support */
enum AVStreamParseType need_parsing;
struct AVCodecParserContext *parser;
@@ -841,6 +818,29 @@ typedef struct AVStream {
unsigned int index_entries_allocated_size;
/**
+ * Real base framerate of the stream.
+ * This is the lowest framerate with which all timestamps can be
+ * represented accurately (it is the least common multiple of all
+ * framerates in the stream). Note, this value is just a guess!
+ * For example, if the time base is 1/90000 and all frames have either
+ * approximately 3600 or 1800 timer ticks, then r_frame_rate will be 50/1.
+ *
+ * Code outside avformat should access this field using:
+ * av_stream_get/set_r_frame_rate(stream)
+ */
+ AVRational r_frame_rate;
+
+ /**
+ * Stream Identifier
+ * This is the MPEG-TS stream identifier +1
+ * 0 means unknown
+ */
+ int stream_identifier;
+
+ int64_t interleaver_chunk_size;
+ int64_t interleaver_chunk_duration;
+
+ /**
* stream probing state
* -1 -> probing finished
* 0 -> no probing requested