Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC
Manage
Activity
Members
Labels
Plan
Issues
4k
Issue boards
Milestones
Code
Merge requests
450
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC
Commits
2db75e08
Commit
2db75e08
authored
3 years ago
by
Rémi Denis-Courmont
Browse files
Options
Downloads
Patches
Plain Diff
rtp: remove hard-coded video/MPV parser
parent
30d50a4e
No related branches found
Branches containing commit
No related tags found
1 merge request
!953
RTP MPEG 1/2 payload formats
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/access/rtp/rtpfmt.c
+0
-41
0 additions, 41 deletions
modules/access/rtp/rtpfmt.c
with
0 additions
and
41 deletions
modules/access/rtp/rtpfmt.c
+
0
−
41
View file @
2db75e08
...
...
@@ -90,44 +90,6 @@ static const struct vlc_rtp_pt_operations rtp_audio_qcelp = {
NULL
,
qcelp_init
,
codec_destroy
,
codec_decode
,
};
/* PT=32
* MPV: MPEG Video (RFC2250, §3.5)
*/
static
void
*
mpv_init
(
struct
vlc_rtp_pt
*
pt
)
{
es_format_t
fmt
;
es_format_Init
(
&
fmt
,
VIDEO_ES
,
VLC_CODEC_MPGV
);
fmt
.
b_packetized
=
false
;
return
vlc_rtp_pt_request_es
(
pt
,
&
fmt
);
}
static
void
mpv_decode
(
struct
vlc_rtp_pt
*
pt
,
void
*
data
,
block_t
*
block
)
{
if
(
block
->
i_buffer
<
4
)
{
block_Release
(
block
);
return
;
}
block
->
i_buffer
-=
4
;
/* 32-bits RTP/MPV header */
block
->
p_buffer
+=
4
;
block
->
i_dts
=
VLC_TICK_INVALID
;
#if 0
if (block->p_buffer[-3] & 0x4)
{
/* MPEG2 Video extension header */
/* TODO: shouldn't we skip this too ? */
}
#endif
vlc_rtp_es_send
(
data
,
block
);
(
void
)
pt
;
}
static
const
struct
vlc_rtp_pt_operations
rtp_video_mpv
=
{
NULL
,
mpv_init
,
codec_destroy
,
mpv_decode
,
};
/* PT=33
* MP2: MPEG TS (RFC2250, §2)
*/
...
...
@@ -188,9 +150,6 @@ static struct vlc_rtp_pt *vlc_rtp_pt_create(vlc_object_t *obj,
pt
->
ops
=
&
rtp_audio_gsm
;
else
if
(
strcmp
(
desc
->
name
,
"QCELP"
)
==
0
)
pt
->
ops
=
&
rtp_audio_qcelp
;
}
else
if
(
strcmp
(
desc
->
media
->
type
,
"video"
)
==
0
)
{
if
(
strcmp
(
desc
->
name
,
"MPV"
)
==
0
)
pt
->
ops
=
&
rtp_video_mpv
;
}
if
(
strcmp
(
desc
->
name
,
"MP2T"
)
==
0
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment