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
b482c001
Commit
b482c001
authored
Jan 31, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove pts rescaling code that is useless after
2ff4a276
parent
12763671
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
4 deletions
+1
-4
vc1testenc.c
libavformat/vc1testenc.c
+1
-4
No files found.
libavformat/vc1testenc.c
View file @
b482c001
...
@@ -56,14 +56,11 @@ static int vc1test_write_packet(AVFormatContext *s, AVPacket *pkt)
...
@@ -56,14 +56,11 @@ static int vc1test_write_packet(AVFormatContext *s, AVPacket *pkt)
{
{
RCVContext
*
ctx
=
s
->
priv_data
;
RCVContext
*
ctx
=
s
->
priv_data
;
ByteIOContext
*
pb
=
s
->
pb
;
ByteIOContext
*
pb
=
s
->
pb
;
uint32_t
pts
=
av_rescale
(
pkt
->
pts
,
1000
*
(
uint64_t
)
s
->
streams
[
0
]
->
time_base
.
num
,
s
->
streams
[
0
]
->
time_base
.
den
);
if
(
!
pkt
->
size
)
if
(
!
pkt
->
size
)
return
0
;
return
0
;
put_le32
(
pb
,
pkt
->
size
|
((
pkt
->
flags
&
AV_PKT_FLAG_KEY
)
?
0x80000000
:
0
));
put_le32
(
pb
,
pkt
->
size
|
((
pkt
->
flags
&
AV_PKT_FLAG_KEY
)
?
0x80000000
:
0
));
put_le32
(
pb
,
pts
);
put_le32
(
pb
,
p
kt
->
p
ts
);
put_buffer
(
pb
,
pkt
->
data
,
pkt
->
size
);
put_buffer
(
pb
,
pkt
->
data
,
pkt
->
size
);
put_flush_packet
(
pb
);
put_flush_packet
(
pb
);
ctx
->
frames
++
;
ctx
->
frames
++
;
...
...
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