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
cf697771
Commit
cf697771
authored
10 years ago
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc: write avg_frame_rate as the framerate, not the codec timebase
parent
81eec081
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
movenc.c
libavformat/movenc.c
+7
-1
No files found.
libavformat/movenc.c
View file @
cf697771
...
...
@@ -483,7 +483,13 @@ static int mov_write_dvc1_structs(MOVTrack *track, uint8_t *buf)
put_bits
(
&
pbc
,
1
,
!
slices
);
/* no slice code */
put_bits
(
&
pbc
,
1
,
0
);
/* no bframe */
put_bits
(
&
pbc
,
1
,
0
);
/* reserved */
put_bits32
(
&
pbc
,
track
->
enc
->
time_base
.
den
);
/* framerate */
/* framerate */
if
(
track
->
st
->
avg_frame_rate
.
num
>
0
&&
track
->
st
->
avg_frame_rate
.
den
>
0
)
put_bits32
(
&
pbc
,
track
->
st
->
avg_frame_rate
.
num
/
track
->
st
->
avg_frame_rate
.
den
);
else
put_bits32
(
&
pbc
,
0xffffffff
);
flush_put_bits
(
&
pbc
);
av_free
(
unescaped
);
...
...
This diff is collapsed.
Click to expand it.
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