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
094aa84b
Commit
094aa84b
authored
May 26, 2011
by
James Zern
Committed by
Michael Niedermayer
May 26, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
muxers: Add a flag to mark muxers that allow (non strict) monotone timestamps.
parent
2b6bfff2
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
avformat.h
libavformat/avformat.h
+3
-0
matroskaenc.c
libavformat/matroskaenc.c
+1
-1
utils.c
libavformat/utils.c
+1
-1
No files found.
libavformat/avformat.h
View file @
094aa84b
...
...
@@ -262,6 +262,9 @@ typedef struct AVFormatParameters {
#define AVFMT_NOSTREAMS 0x1000
/**< Format does not require any streams */
#define AVFMT_NOBINSEARCH 0x2000
/**< Format does not allow to fallback to binary search via read_timestamp */
#define AVFMT_NOGENSEARCH 0x4000
/**< Format does not allow to fallback to generic search */
#define AVFMT_TS_NONSTRICT 0x8000
/**< Format does not require strictly
increasing timestamps, but they must
still be monotonic */
typedef
struct
AVOutputFormat
{
const
char
*
name
;
...
...
libavformat/matroskaenc.c
View file @
094aa84b
...
...
@@ -1220,7 +1220,7 @@ AVOutputFormat ff_webm_muxer = {
mkv_write_header
,
mkv_write_packet
,
mkv_write_trailer
,
.
flags
=
AVFMT_GLOBALHEADER
|
AVFMT_VARIABLE_FPS
,
.
flags
=
AVFMT_GLOBALHEADER
|
AVFMT_VARIABLE_FPS
|
AVFMT_TS_NONSTRICT
,
};
#endif
...
...
libavformat/utils.c
View file @
094aa84b
...
...
@@ -2993,7 +2993,7 @@ static int compute_pkt_fields2(AVFormatContext *s, AVStream *st, AVPacket *pkt){
pkt
->
dts
=
st
->
pts_buffer
[
0
];
}
if
(
st
->
cur_dts
&&
st
->
cur_dts
!=
AV_NOPTS_VALUE
&&
st
->
cur_dts
>=
pkt
->
dts
){
if
(
st
->
cur_dts
&&
st
->
cur_dts
!=
AV_NOPTS_VALUE
&&
((
!
(
s
->
oformat
->
flags
&
AVFMT_TS_NONSTRICT
)
&&
st
->
cur_dts
>=
pkt
->
dts
)
||
st
->
cur_dts
>
pkt
->
dts
)
){
av_log
(
s
,
AV_LOG_ERROR
,
"Application provided invalid, non monotonically increasing dts to muxer in stream %d: %"
PRId64
" >= %"
PRId64
"
\n
"
,
st
->
index
,
st
->
cur_dts
,
pkt
->
dts
);
...
...
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