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
b86af8da
Commit
b86af8da
authored
Mar 01, 2015
by
Timo Rothenpieler
Committed by
Michael Niedermayer
Mar 02, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avformat/dashenc: Use local variable instead of duplicated dereferences
Signed-off-by:
Michael Niedermayer
<
michaelni@gmx.at
>
parent
f5cbb2c5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
dashenc.c
libavformat/dashenc.c
+4
-2
No files found.
libavformat/dashenc.c
View file @
b86af8da
...
@@ -498,7 +498,8 @@ static int write_manifest(AVFormatContext *s, int final)
...
@@ -498,7 +498,8 @@ static int write_manifest(AVFormatContext *s, int final)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
AVStream
*
st
=
s
->
streams
[
i
];
AVStream
*
st
=
s
->
streams
[
i
];
OutputStream
*
os
=
&
c
->
streams
[
i
];
OutputStream
*
os
=
&
c
->
streams
[
i
];
if
(
s
->
streams
[
i
]
->
codec
->
codec_type
!=
AVMEDIA_TYPE_VIDEO
)
if
(
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_VIDEO
)
continue
;
continue
;
avio_printf
(
out
,
"
\t\t\t
<Representation id=
\"
%d
\"
mimeType=
\"
video/mp4
\"
codecs=
\"
%s
\"
%s width=
\"
%d
\"
height=
\"
%d
\"
>
\n
"
,
i
,
os
->
codec_str
,
os
->
bandwidth_str
,
st
->
codec
->
width
,
st
->
codec
->
height
);
avio_printf
(
out
,
"
\t\t\t
<Representation id=
\"
%d
\"
mimeType=
\"
video/mp4
\"
codecs=
\"
%s
\"
%s width=
\"
%d
\"
height=
\"
%d
\"
>
\n
"
,
i
,
os
->
codec_str
,
os
->
bandwidth_str
,
st
->
codec
->
width
,
st
->
codec
->
height
);
output_segment_list
(
&
c
->
streams
[
i
],
out
,
c
);
output_segment_list
(
&
c
->
streams
[
i
],
out
,
c
);
...
@@ -511,7 +512,8 @@ static int write_manifest(AVFormatContext *s, int final)
...
@@ -511,7 +512,8 @@ static int write_manifest(AVFormatContext *s, int final)
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
for
(
i
=
0
;
i
<
s
->
nb_streams
;
i
++
)
{
AVStream
*
st
=
s
->
streams
[
i
];
AVStream
*
st
=
s
->
streams
[
i
];
OutputStream
*
os
=
&
c
->
streams
[
i
];
OutputStream
*
os
=
&
c
->
streams
[
i
];
if
(
s
->
streams
[
i
]
->
codec
->
codec_type
!=
AVMEDIA_TYPE_AUDIO
)
if
(
st
->
codec
->
codec_type
!=
AVMEDIA_TYPE_AUDIO
)
continue
;
continue
;
avio_printf
(
out
,
"
\t\t\t
<Representation id=
\"
%d
\"
mimeType=
\"
audio/mp4
\"
codecs=
\"
%s
\"
%s audioSamplingRate=
\"
%d
\"
>
\n
"
,
i
,
os
->
codec_str
,
os
->
bandwidth_str
,
st
->
codec
->
sample_rate
);
avio_printf
(
out
,
"
\t\t\t
<Representation id=
\"
%d
\"
mimeType=
\"
audio/mp4
\"
codecs=
\"
%s
\"
%s audioSamplingRate=
\"
%d
\"
>
\n
"
,
i
,
os
->
codec_str
,
os
->
bandwidth_str
,
st
->
codec
->
sample_rate
);
avio_printf
(
out
,
"
\t\t\t\t
<AudioChannelConfiguration schemeIdUri=
\"
urn:mpeg:dash:23003:3:audio_channel_configuration:2011
\"
value=
\"
%d
\"
/>
\n
"
,
st
->
codec
->
channels
);
avio_printf
(
out
,
"
\t\t\t\t
<AudioChannelConfiguration schemeIdUri=
\"
urn:mpeg:dash:23003:3:audio_channel_configuration:2011
\"
value=
\"
%d
\"
/>
\n
"
,
st
->
codec
->
channels
);
...
...
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