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
7f7080dc
Commit
7f7080dc
authored
May 19, 2014
by
Michael Niedermayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat: add av_stream_get_end_pts()
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
91a8262b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
14 additions
and
3 deletions
+14
-3
APIchanges
doc/APIchanges
+1
-2
avformat.h
libavformat/avformat.h
+7
-0
utils.c
libavformat/utils.c
+5
-0
version.h
libavformat/version.h
+1
-1
No files found.
doc/APIchanges
View file @
7f7080dc
...
...
@@ -32,8 +32,7 @@ API changes, most recent first:
2014-05-xx - xxxxxxx - lavf 55.17.1 - avformat.h
Deprecate AVStream.pts and the AVFrac struct, which was its only use case.
Those fields were poorly defined and not meant to be public, so there is
no replacement for them.
See use av_stream_get_end_pts()
2014-05-18 - fd05602 - lavc 55.52.0 - avcodec.h
Add avcodec_free_context(). From now on it should be used for freeing
...
...
libavformat/avformat.h
View file @
7f7080dc
...
...
@@ -1067,6 +1067,13 @@ typedef struct AVStream {
AVRational
av_stream_get_r_frame_rate
(
const
AVStream
*
s
);
void
av_stream_set_r_frame_rate
(
AVStream
*
s
,
AVRational
r
);
/**
* Returns the pts of the last muxed packet + its duration
*
* the retuned value is undefined when used with a demuxer.
*/
int64_t
av_stream_get_end_pts
(
const
AVStream
*
st
);
#define AV_PROGRAM_RUNNING 1
/**
...
...
libavformat/utils.c
View file @
7f7080dc
...
...
@@ -110,6 +110,11 @@ MAKE_ACCESSORS(AVFormatContext, format, int, metadata_header_padding)
MAKE_ACCESSORS
(
AVFormatContext
,
format
,
void
*
,
opaque
)
MAKE_ACCESSORS
(
AVFormatContext
,
format
,
av_format_control_message
,
control_message_cb
)
int64_t
av_stream_get_end_pts
(
const
AVStream
*
st
)
{
return
st
->
pts
.
val
;
}
void
av_format_inject_global_side_data
(
AVFormatContext
*
s
)
{
int
i
;
...
...
libavformat/version.h
View file @
7f7080dc
...
...
@@ -30,7 +30,7 @@
#include "libavutil/version.h"
#define LIBAVFORMAT_VERSION_MAJOR 55
#define LIBAVFORMAT_VERSION_MINOR
39
#define LIBAVFORMAT_VERSION_MINOR
40
#define LIBAVFORMAT_VERSION_MICRO 100
#define LIBAVFORMAT_VERSION_INT AV_VERSION_INT(LIBAVFORMAT_VERSION_MAJOR, \
...
...
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