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
9540476b
Commit
9540476b
authored
Apr 10, 2012
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
latmenc: simplify using avpriv_copy_bits.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
eb24def4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
+4
-6
latmenc.c
libavformat/latmenc.c
+4
-6
No files found.
libavformat/latmenc.c
View file @
9540476b
...
...
@@ -168,7 +168,7 @@ static int latm_write_packet(AVFormatContext *s, AVPacket *pkt)
/* The LATM payload is written unaligned */
i
=
0
;
/* PayloadMux() */
if
(
pkt
->
size
&&
(
pkt
->
data
[
0
]
&
0xe1
)
==
0x81
)
{
// Convert byte-aligned DSE to non-aligned.
// Due to the input format encoding we know that
...
...
@@ -179,11 +179,9 @@ static int latm_write_packet(AVFormatContext *s, AVPacket *pkt)
// This allows us to remux our FATE AAC samples into latm
// files that are still playable with minimal effort.
put_bits
(
&
bs
,
8
,
pkt
->
data
[
0
]
&
0xfe
);
i
++
;
}
/* PayloadMux() */
for
(;
i
<
pkt
->
size
;
i
++
)
put_bits
(
&
bs
,
8
,
pkt
->
data
[
i
]);
avpriv_copy_bits
(
&
bs
,
pkt
->
data
+
1
,
8
*
pkt
->
size
-
8
);
}
else
avpriv_copy_bits
(
&
bs
,
pkt
->
data
,
8
*
pkt
->
size
);
avpriv_align_put_bits
(
&
bs
);
flush_put_bits
(
&
bs
);
...
...
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