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
53367b34
Commit
53367b34
authored
Feb 14, 2015
by
Luca Barbato
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtp: h264: Drop the asserts
parent
3b33dfb2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
9 deletions
+0
-9
rtpdec_h264.c
libavformat/rtpdec_h264.c
+0
-9
No files found.
libavformat/rtpdec_h264.c
View file @
53367b34
...
...
@@ -40,7 +40,6 @@
#include "avformat.h"
#include "network.h"
#include <assert.h>
#include "rtpdec.h"
#include "rtpdec_formats.h"
...
...
@@ -153,8 +152,6 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
char
*
attr
,
char
*
value
)
{
AVCodecContext
*
codec
=
stream
->
codec
;
assert
(
codec
->
codec_id
==
AV_CODEC_ID_H264
);
assert
(
h264_data
!=
NULL
);
if
(
!
strcmp
(
attr
,
"packetization-mode"
))
{
av_log
(
s
,
AV_LOG_DEBUG
,
"RTP Packetization Mode: %d
\n
"
,
atoi
(
value
));
...
...
@@ -205,7 +202,6 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt,
total_length
+=
sizeof
(
start_sequence
)
+
nal_size
;
}
else
{
// copying
assert
(
dst
);
memcpy
(
dst
,
start_sequence
,
sizeof
(
start_sequence
));
dst
+=
sizeof
(
start_sequence
);
memcpy
(
dst
,
src
,
nal_size
);
...
...
@@ -232,8 +228,6 @@ static int h264_handle_packet_stap_a(AVFormatContext *ctx, AVPacket *pkt,
if
((
ret
=
av_new_packet
(
pkt
,
total_length
))
<
0
)
return
ret
;
dst
=
pkt
->
data
;
}
else
{
assert
(
dst
-
pkt
->
data
==
total_length
);
}
}
...
...
@@ -295,9 +289,6 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
nal
=
buf
[
0
];
type
=
nal
&
0x1f
;
assert
(
data
);
assert
(
buf
);
/* Simplify the case (these are all the nal types used internally by
* the h264 codec). */
if
(
type
>=
1
&&
type
<=
23
)
...
...
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