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
d4c7fc02
Commit
d4c7fc02
authored
Feb 26, 2015
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpenc: Skip redundant initialization
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
f8c01257
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
4 deletions
+0
-4
rtpenc.c
libavformat/rtpenc.c
+0
-4
No files found.
libavformat/rtpenc.c
View file @
d4c7fc02
...
...
@@ -196,7 +196,6 @@ static int rtp_write_header(AVFormatContext *s1)
if
(
n
<
1
)
n
=
1
;
s
->
max_payload_size
=
n
*
TS_PACKET_SIZE
;
s
->
buf_ptr
=
s
->
buf
;
break
;
case
AV_CODEC_ID_H261
:
if
(
s1
->
strict_std_compliance
>
FF_COMPLIANCE_EXPERIMENTAL
)
{
...
...
@@ -229,7 +228,6 @@ static int rtp_write_header(AVFormatContext *s1)
if
(
!
s
->
max_frames_per_packet
)
s
->
max_frames_per_packet
=
15
;
s
->
max_frames_per_packet
=
av_clip
(
s
->
max_frames_per_packet
,
1
,
15
);
s
->
num_frames
=
0
;
break
;
case
AV_CODEC_ID_ADPCM_G722
:
/* Due to a historical error, the clock rate for G722 in RTP is
...
...
@@ -273,10 +271,8 @@ static int rtp_write_header(AVFormatContext *s1)
av_log
(
s1
,
AV_LOG_ERROR
,
"Only mono is supported
\n
"
);
goto
fail
;
}
s
->
num_frames
=
0
;
break
;
case
AV_CODEC_ID_AAC
:
s
->
num_frames
=
0
;
if
(
!
s
->
max_frames_per_packet
)
s
->
max_frames_per_packet
=
5
;
break
;
...
...
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