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
a536a4e4
Commit
a536a4e4
authored
Nov 14, 2014
by
Anton Khirnov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: support extracting audio service type from side data
parent
32125781
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
utils.c
libavcodec/utils.c
+7
-0
No files found.
libavcodec/utils.c
View file @
a536a4e4
...
@@ -1397,6 +1397,13 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
...
@@ -1397,6 +1397,13 @@ int attribute_align_arg avcodec_encode_audio2(AVCodecContext *avctx,
frame
=
&
tmp
;
frame
=
&
tmp
;
}
}
/* extract audio service type metadata */
if
(
frame
)
{
AVFrameSideData
*
sd
=
av_frame_get_side_data
(
frame
,
AV_FRAME_DATA_AUDIO_SERVICE_TYPE
);
if
(
sd
&&
sd
->
size
>=
sizeof
(
enum
AVAudioServiceType
))
avctx
->
audio_service_type
=
*
(
enum
AVAudioServiceType
*
)
sd
->
data
;
}
/* check for valid frame size */
/* check for valid frame size */
if
(
frame
)
{
if
(
frame
)
{
if
(
avctx
->
codec
->
capabilities
&
CODEC_CAP_SMALL_LAST_FRAME
)
{
if
(
avctx
->
codec
->
capabilities
&
CODEC_CAP_SMALL_LAST_FRAME
)
{
...
...
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