summaryrefslogtreecommitdiff
path: root/libavformat/avformat.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2009-01-22 23:35:31 +0000
committerMichael Niedermayer <michaelni@gmx.at>2009-01-22 23:35:31 +0000
commit3a41c2f769e6ff7321a304517345b92def0c5c49 (patch)
treeb257f15df8ba428debe5f1881c03fbb04e90b0bc /libavformat/avformat.h
parent959e0006278fa2341c12026556088ecbb1f626d0 (diff)
Move av_read_frame/parser related buffer variables from AVFormatContext
to AVStream, this is required if we want to allow the user to pull frames from specific streams at some point in the future. Originally committed as revision 16724 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/avformat.h')
-rw-r--r--libavformat/avformat.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/libavformat/avformat.h b/libavformat/avformat.h
index 3c327b0357..c74eb89bd2 100644
--- a/libavformat/avformat.h
+++ b/libavformat/avformat.h
@@ -487,6 +487,11 @@ typedef struct AVStream {
AVRational sample_aspect_ratio;
AVMetadata *metadata;
+
+ /* av_read_frame() support */
+ const uint8_t *cur_ptr;
+ int cur_len;
+ AVPacket cur_pkt;
} AVStream;
#define AV_PROGRAM_RUNNING 1
@@ -573,9 +578,11 @@ typedef struct AVFormatContext {
/* av_read_frame() support */
AVStream *cur_st;
- const uint8_t *cur_ptr;
- int cur_len;
- AVPacket cur_pkt;
+#if LIBAVFORMAT_VERSION_INT < (53<<16)
+ const uint8_t *cur_ptr_deprecated;
+ int cur_len_deprecated;
+ AVPacket cur_pkt_deprecated;
+#endif
/* av_seek_frame() support */
int64_t data_offset; /** offset of the first packet */