Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
abcbbf63
Commit
abcbbf63
authored
Feb 02, 2004
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* rtp: fix in mpeg 1/2 packetization.
parent
e73ad00f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
modules/stream_out/rtp.c
modules/stream_out/rtp.c
+7
-7
No files found.
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/01/30 16:45:40
fenrir Exp $
* $Id: rtp.c,v 1.1
1 2004/02/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
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