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
ccd39ae6
Commit
ccd39ae6
authored
Nov 10, 2003
by
Fabrice Bellard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use parsers
Originally committed as revision 2496 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
ff762d6e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
rtp.c
libavformat/rtp.c
+13
-1
No files found.
libavformat/rtp.c
View file @
ccd39ae6
...
...
@@ -234,6 +234,18 @@ RTPDemuxContext *rtp_parse_open(AVFormatContext *s1, AVStream *st, int payload_t
av_free
(
s
);
return
NULL
;
}
}
else
{
switch
(
st
->
codec
.
codec_id
)
{
case
CODEC_ID_MPEG1VIDEO
:
case
CODEC_ID_MPEG2VIDEO
:
case
CODEC_ID_MP2
:
case
CODEC_ID_MP3
:
case
CODEC_ID_MPEG4
:
st
->
need_parsing
=
1
;
break
;
default:
break
;
}
}
return
s
;
}
...
...
@@ -322,7 +334,7 @@ int rtp_parse_packet(RTPDemuxContext *s, AVPacket *pkt,
memcpy
(
pkt
->
data
,
buf
,
len
);
break
;
case
CODEC_ID_MPEG1VIDEO
:
/* better than nothing: skip mpeg
audi
o RTP header */
/* better than nothing: skip mpeg
vide
o RTP header */
if
(
len
<=
4
)
return
-
1
;
h
=
decode_be32
(
buf
);
...
...
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