Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
abcbbf63
Commit
abcbbf63
authored
Feb 02, 2004
by
Laurent Aimar
Browse files
* rtp: fix in mpeg 1/2 packetization.
parent
e73ad00f
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/rtp.c
View file @
abcbbf63
...
...
@@ -2,7 +2,7 @@
* rtp.c: rtp stream output module
*****************************************************************************
* Copyright (C) 2003-2004 VideoLAN
* $Id: rtp.c,v 1.1
0
2004/0
1/30 16:45:40
fenrir Exp $
* $Id: rtp.c,v 1.1
1
2004/0
2/02 12:50:08
fenrir Exp $
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
*
...
...
@@ -582,7 +582,7 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
id
->
psz_fmtp
=
malloc
(
100
+
2
*
p_fmt
->
i_extra
);
sprintf_hexa
(
hexa
,
p_fmt
->
p_extra
,
p_fmt
->
i_extra
);
sprintf
(
id
->
psz_fmtp
,
"profile-level-id=3;config=%s"
,
hexa
);
"profile-level-id=3;
config=%s"
,
hexa
);
}
break
;
}
...
...
@@ -598,9 +598,9 @@ static sout_stream_id_t *Add( sout_stream_t *p_stream, es_format_t *p_fmt )
id
->
psz_fmtp
=
malloc
(
200
+
2
*
p_fmt
->
i_extra
);
sprintf_hexa
(
hexa
,
p_fmt
->
p_extra
,
p_fmt
->
i_extra
);
sprintf
(
id
->
psz_fmtp
,
"streamtype=5;profile-level-id=15;mode=AAC-hbr;"
"config=%s;SizeLength=13;IndexLength=3; "
"IndexDeltaLength=3;Profile=1;"
,
hexa
);
"streamtype=5;
profile-level-id=15;
mode=AAC-hbr;
"
"config=%s;
SizeLength=13;IndexLength=3; "
"IndexDeltaLength=3;
Profile=1;"
,
hexa
);
break
;
}
...
...
@@ -913,8 +913,8 @@ static int rtp_packetize_mpv( sout_stream_t *p_stream, sout_stream_id_t *id,
if
(
i_rest
>
4
&&
(
i_picture_coding_type
==
2
||
i_picture_coding_type
==
3
)
)
{
i_ff
c
=
(
p
[
3
]
>>
2
)
&
0x01
;
i_
b
fc
=
((
p
[
3
]
&
0x03
)
<<
1
)
|
((
p
[
4
]
>>
7
)
&
0x01
);
i_ff
v
=
(
p
[
3
]
>>
2
)
&
0x01
;
i_
f
fc
=
((
p
[
3
]
&
0x03
)
<<
1
)
|
((
p
[
4
]
>>
7
)
&
0x01
);
if
(
i_picture_coding_type
==
3
)
{
i_fbv
=
(
p
[
4
]
>>
6
)
&
0x01
;
...
...
Write
Preview
Supports
Markdown
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