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
f3f82296
Commit
f3f82296
authored
May 18, 2011
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
movenc: Pass the RTP AVFormatContext to the SDP generation
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
e2e29c62
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
movenc.c
libavformat/movenc.c
+3
-3
No files found.
libavformat/movenc.c
View file @
f3f82296
...
@@ -1354,12 +1354,12 @@ static int mov_write_uuid_tag_psp(AVIOContext *pb, MOVTrack *mov)
...
@@ -1354,12 +1354,12 @@ static int mov_write_uuid_tag_psp(AVIOContext *pb, MOVTrack *mov)
return
0x34
;
return
0x34
;
}
}
static
int
mov_write_udta_sdp
(
AVIOContext
*
pb
,
AV
Codec
Context
*
ctx
,
int
index
)
static
int
mov_write_udta_sdp
(
AVIOContext
*
pb
,
AV
Format
Context
*
ctx
,
int
index
)
{
{
char
buf
[
1000
]
=
""
;
char
buf
[
1000
]
=
""
;
int
len
;
int
len
;
ff_sdp_write_media
(
buf
,
sizeof
(
buf
),
ctx
,
NULL
,
NULL
,
0
,
0
,
NULL
);
ff_sdp_write_media
(
buf
,
sizeof
(
buf
),
ctx
->
streams
[
0
]
->
codec
,
NULL
,
NULL
,
0
,
0
,
ctx
);
av_strlcatf
(
buf
,
sizeof
(
buf
),
"a=control:streamid=%d
\r\n
"
,
index
);
av_strlcatf
(
buf
,
sizeof
(
buf
),
"a=control:streamid=%d
\r\n
"
,
index
);
len
=
strlen
(
buf
);
len
=
strlen
(
buf
);
...
@@ -1387,7 +1387,7 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
...
@@ -1387,7 +1387,7 @@ static int mov_write_trak_tag(AVIOContext *pb, MOVTrack *track, AVStream *st)
if
(
track
->
mode
==
MODE_PSP
)
if
(
track
->
mode
==
MODE_PSP
)
mov_write_uuid_tag_psp
(
pb
,
track
);
// PSP Movies require this uuid box
mov_write_uuid_tag_psp
(
pb
,
track
);
// PSP Movies require this uuid box
if
(
track
->
tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
if
(
track
->
tag
==
MKTAG
(
'r'
,
't'
,
'p'
,
' '
))
mov_write_udta_sdp
(
pb
,
track
->
rtp_ctx
->
streams
[
0
]
->
codec
,
track
->
trackID
);
mov_write_udta_sdp
(
pb
,
track
->
rtp_ctx
,
track
->
trackID
);
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
track
->
mode
==
MODE_MOV
)
{
if
(
track
->
enc
->
codec_type
==
AVMEDIA_TYPE_VIDEO
&&
track
->
mode
==
MODE_MOV
)
{
double
sample_aspect_ratio
=
av_q2d
(
st
->
sample_aspect_ratio
);
double
sample_aspect_ratio
=
av_q2d
(
st
->
sample_aspect_ratio
);
if
(
0
.
0
!=
sample_aspect_ratio
&&
1
.
0
!=
sample_aspect_ratio
)
if
(
0
.
0
!=
sample_aspect_ratio
&&
1
.
0
!=
sample_aspect_ratio
)
...
...
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