Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
12763671
Commit
12763671
authored
Jan 29, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document that av_write_header sets stream time_base to a value of it chosing.
parent
2c30f7b3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
avformat.h
libavformat/avformat.h
+4
-0
No files found.
libavformat/avformat.h
View file @
12763671
...
@@ -507,6 +507,8 @@ typedef struct AVStream {
...
@@ -507,6 +507,8 @@ typedef struct AVStream {
* This is the fundamental unit of time (in seconds) in terms
* This is the fundamental unit of time (in seconds) in terms
* of which frame timestamps are represented. For fixed-fps content,
* of which frame timestamps are represented. For fixed-fps content,
* time base should be 1/framerate and timestamp increments should be 1.
* time base should be 1/framerate and timestamp increments should be 1.
* decoding: set by libavformat
* encoding: set by libavformat in av_write_header
*/
*/
AVRational
time_base
;
AVRational
time_base
;
int
pts_wrap_bits
;
/**< number of bits in pts (used for wrapping control) */
int
pts_wrap_bits
;
/**< number of bits in pts (used for wrapping control) */
...
@@ -1374,6 +1376,8 @@ void av_url_split(char *proto, int proto_size,
...
@@ -1374,6 +1376,8 @@ void av_url_split(char *proto, int proto_size,
/**
/**
* Allocate the stream private data and write the stream header to an
* Allocate the stream private data and write the stream header to an
* output media file.
* output media file.
* Note: this sets stream time-bases, if possible to stream->codec->time_base
* but for some formats it might also be some other time base
*
*
* @param s media file handle
* @param s media file handle
* @return 0 if OK, AVERROR_xxx on error
* @return 0 if OK, AVERROR_xxx on error
...
...
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