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
b89cd2a0
Commit
b89cd2a0
authored
Nov 07, 2012
by
Peter Ross
Committed by
Michael Niedermayer
Nov 07, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wtvenc: simplify write_timestamp
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
3e651343
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
wtvenc.c
libavformat/wtvenc.c
+1
-5
No files found.
libavformat/wtvenc.c
View file @
b89cd2a0
...
...
@@ -372,18 +372,14 @@ static void write_timestamp(AVFormatContext *s, AVPacket *pkt)
AVIOContext
*
pb
=
s
->
pb
;
WtvContext
*
wctx
=
s
->
priv_data
;
AVCodecContext
*
enc
=
s
->
streams
[
pkt
->
stream_index
]
->
codec
;
int
flag
=
0
;
if
(
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
)
{
flag
=
pkt
->
flags
&
AV_PKT_FLAG_KEY
?
1
:
0
;
}
write_chunk_header
(
s
,
&
ff_timestamp_guid
,
56
,
0x40000000
|
(
INDEX_BASE
+
pkt
->
stream_index
));
write_pad
(
pb
,
8
);
avio_wl64
(
pb
,
pkt
->
pts
==
AV_NOPTS_VALUE
?
-
1
:
pkt
->
pts
);
avio_wl64
(
pb
,
pkt
->
pts
==
AV_NOPTS_VALUE
?
-
1
:
pkt
->
pts
);
avio_wl64
(
pb
,
pkt
->
pts
==
AV_NOPTS_VALUE
?
-
1
:
pkt
->
pts
);
avio_wl64
(
pb
,
0
);
avio_wl64
(
pb
,
flag
);
avio_wl64
(
pb
,
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
(
pkt
->
flags
&
AV_PKT_FLAG_KEY
)
?
1
:
0
);
avio_wl64
(
pb
,
0
);
}
...
...
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