Mercurial > libavformat.hg
diff avformat.h @ 4273:ed5196e6e112 libavformat
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.
| author | michael |
|---|---|
| date | Thu, 22 Jan 2009 23:35:31 +0000 |
| parents | 3f71ce8f8da1 |
| children | fcc542fd3214 |
line wrap: on
line diff
--- a/avformat.h Thu Jan 22 19:45:53 2009 +0000 +++ b/avformat.h Thu Jan 22 23:35:31 2009 +0000 @@ -487,6 +487,11 @@ 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 @@ /* 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 */
