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
eeb1c515
Commit
eeb1c515
authored
Oct 01, 2019
by
Raphaël Zumer
Committed by
Vittorio Giovara
Oct 09, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/ivfenc: Comment the length field encoding process
Signed-off-by:
Raphaël Zumer
<
rzumer@tebako.net
>
parent
971c890c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
ivfenc.c
libavformat/ivfenc.c
+2
-1
No files found.
libavformat/ivfenc.c
View file @
eeb1c515
...
@@ -53,7 +53,7 @@ static int ivf_write_header(AVFormatContext *s)
...
@@ -53,7 +53,7 @@ static int ivf_write_header(AVFormatContext *s)
avio_wl16
(
pb
,
par
->
height
);
avio_wl16
(
pb
,
par
->
height
);
avio_wl32
(
pb
,
s
->
streams
[
0
]
->
time_base
.
den
);
avio_wl32
(
pb
,
s
->
streams
[
0
]
->
time_base
.
den
);
avio_wl32
(
pb
,
s
->
streams
[
0
]
->
time_base
.
num
);
avio_wl32
(
pb
,
s
->
streams
[
0
]
->
time_base
.
num
);
avio_wl64
(
pb
,
0xFFFFFFFFFFFFFFFFULL
);
avio_wl64
(
pb
,
0xFFFFFFFFFFFFFFFFULL
);
// length is overwritten at the end of muxing
return
0
;
return
0
;
}
}
...
@@ -83,6 +83,7 @@ static int ivf_write_trailer(AVFormatContext *s)
...
@@ -83,6 +83,7 @@ static int ivf_write_trailer(AVFormatContext *s)
size_t
end
=
avio_tell
(
pb
);
size_t
end
=
avio_tell
(
pb
);
avio_seek
(
pb
,
24
,
SEEK_SET
);
avio_seek
(
pb
,
24
,
SEEK_SET
);
// overwrite the "length" field (duration)
avio_wl64
(
pb
,
ctx
->
frame_cnt
*
ctx
->
sum_delta_pts
/
(
ctx
->
frame_cnt
-
1
));
avio_wl64
(
pb
,
ctx
->
frame_cnt
*
ctx
->
sum_delta_pts
/
(
ctx
->
frame_cnt
-
1
));
avio_seek
(
pb
,
end
,
SEEK_SET
);
avio_seek
(
pb
,
end
,
SEEK_SET
);
}
}
...
...
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