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
29d27b54
Commit
29d27b54
authored
Mar 13, 2012
by
Janne Grunau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mpegmux: add stuffing to avoid incomplete PCM frames
Fixes
https://bugzilla.libav.org/show_bug.cgi?id=244
parent
ddce7dab
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
mpegenc.c
libavformat/mpegenc.c
+6
-0
No files found.
libavformat/mpegenc.c
View file @
29d27b54
...
...
@@ -832,6 +832,12 @@ static int flush_packet(AVFormatContext *ctx, int stream_index,
if
(
stuffing_size
<
0
)
stuffing_size
=
0
;
if
(
startcode
==
PRIVATE_STREAM_1
&&
id
>=
0xa0
)
{
if
(
payload_size
<
av_fifo_size
(
stream
->
fifo
))
stuffing_size
+=
payload_size
%
stream
->
lpcm_align
;
}
if
(
stuffing_size
>
16
)
{
/*<=16 for MPEG-1, <=32 for MPEG-2*/
pad_packet_bytes
+=
stuffing_size
;
packet_size
-=
stuffing_size
;
...
...
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