Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ffmpeg
Commits
df968050
Commit
df968050
authored
Oct 19, 2011
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavf: move private fields in AVFormatContext to the end at next bump.
parent
a2faa951
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
48 additions
and
0 deletions
+48
-0
avformat.h
libavformat/avformat.h
+45
-0
version.h
libavformat/version.h
+3
-0
No files found.
libavformat/avformat.h
View file @
df968050
...
...
@@ -695,6 +695,7 @@ typedef struct AVFormatContext {
#endif
int
ctx_flags
;
/**< Format-specific flags, see AVFMTCTX_xx */
#if FF_API_REORDER_PRIVATE
/* private data for pts handling (do not modify directly). */
/**
* This buffer is only needed when packets were already buffered but
...
...
@@ -702,6 +703,7 @@ typedef struct AVFormatContext {
* streams.
*/
struct
AVPacketList
*
packet_buffer
;
#endif
/**
* Decoding: position of the first frame of the component, in
...
...
@@ -732,11 +734,13 @@ typedef struct AVFormatContext {
*/
int
bit_rate
;
#if FF_API_REORDER_PRIVATE
/* av_read_frame() support */
AVStream
*
cur_st
;
/* av_seek_frame() support */
int64_t
data_offset
;
/**< offset of the first packet */
#endif
#if FF_API_MUXRATE
/**
...
...
@@ -843,6 +847,7 @@ typedef struct AVFormatContext {
int
debug
;
#define FF_FDEBUG_TS 0x0001
#if FF_API_REORDER_PRIVATE
/**
* Raw packets from the demuxer, prior to parsing and decoding.
* This buffer is used for buffering packets until the codec can
...
...
@@ -853,15 +858,18 @@ typedef struct AVFormatContext {
struct
AVPacketList
*
raw_packet_buffer_end
;
struct
AVPacketList
*
packet_buffer_end
;
#endif
AVDictionary
*
metadata
;
#if FF_API_REORDER_PRIVATE
/**
* Remaining size available for raw_packet_buffer, in bytes.
* NOT PART OF PUBLIC API
*/
#define RAW_PACKET_BUFFER_SIZE 2500000
int
raw_packet_buffer_remaining_size
;
#endif
/**
* Start time of the stream in real world time, in microseconds
...
...
@@ -884,6 +892,43 @@ typedef struct AVFormatContext {
* - decoding: Set by user.
*/
int
error_recognition
;
/*****************************************************************
* 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
* removed at will.
* New public fields should be added right above.
*****************************************************************
*/
#if !FF_API_REORDER_PRIVATE
/**
* Raw packets from the demuxer, prior to parsing and decoding.
* This buffer is used for buffering packets until the codec can
* be identified, as parsing cannot be done without knowing the
* codec.
*/
struct
AVPacketList
*
raw_packet_buffer
;
struct
AVPacketList
*
raw_packet_buffer_end
;
/**
* Remaining size available for raw_packet_buffer, in bytes.
*/
#define RAW_PACKET_BUFFER_SIZE 2500000
int
raw_packet_buffer_remaining_size
;
/**
* This buffer is only needed when packets were already buffered but
* not decoded, for example to get the codec parameters in MPEG
* streams.
*/
struct
AVPacketList
*
packet_buffer
;
struct
AVPacketList
*
packet_buffer_end
;
/* av_read_frame() support */
AVStream
*
cur_st
;
/* av_seek_frame() support */
int64_t
data_offset
;
/**< offset of the first packet */
#endif
}
AVFormatContext
;
typedef
struct
AVPacketList
{
...
...
libavformat/version.h
View file @
df968050
...
...
@@ -107,5 +107,8 @@
#ifndef FF_API_SEEK_PUBLIC
#define FF_API_SEEK_PUBLIC (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#ifndef FF_API_REORDER_PRIVATE
#define FF_API_REORDER_PRIVATE (LIBAVFORMAT_VERSION_MAJOR < 54)
#endif
#endif
/* AVFORMAT_VERSION_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment