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
d3d1eae6
Commit
d3d1eae6
authored
Dec 28, 2009
by
Luca Abeni
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove a useless local variable.
Originally committed as revision 20946 to
svn://svn.ffmpeg.org/ffmpeg/trunk
parent
cd7bfe40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
rtpenc.c
libavformat/rtpenc.c
+10
-11
No files found.
libavformat/rtpenc.c
View file @
d3d1eae6
...
...
@@ -345,7 +345,6 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
AVStream
*
st
=
s1
->
streams
[
0
];
int
rtcp_bytes
;
int
size
=
pkt
->
size
;
uint8_t
*
buf1
=
pkt
->
data
;
dprintf
(
s1
,
"%d: write len=%d
\n
"
,
pkt
->
stream_index
,
size
);
...
...
@@ -364,42 +363,42 @@ static int rtp_write_packet(AVFormatContext *s1, AVPacket *pkt)
case
CODEC_ID_PCM_ALAW
:
case
CODEC_ID_PCM_U8
:
case
CODEC_ID_PCM_S8
:
rtp_send_samples
(
s1
,
buf1
,
size
,
1
*
st
->
codec
->
channels
);
rtp_send_samples
(
s1
,
pkt
->
data
,
size
,
1
*
st
->
codec
->
channels
);
break
;
case
CODEC_ID_PCM_U16BE
:
case
CODEC_ID_PCM_U16LE
:
case
CODEC_ID_PCM_S16BE
:
case
CODEC_ID_PCM_S16LE
:
rtp_send_samples
(
s1
,
buf1
,
size
,
2
*
st
->
codec
->
channels
);
rtp_send_samples
(
s1
,
pkt
->
data
,
size
,
2
*
st
->
codec
->
channels
);
break
;
case
CODEC_ID_MP2
:
case
CODEC_ID_MP3
:
rtp_send_mpegaudio
(
s1
,
buf1
,
size
);
rtp_send_mpegaudio
(
s1
,
pkt
->
data
,
size
);
break
;
case
CODEC_ID_MPEG1VIDEO
:
case
CODEC_ID_MPEG2VIDEO
:
ff_rtp_send_mpegvideo
(
s1
,
buf1
,
size
);
ff_rtp_send_mpegvideo
(
s1
,
pkt
->
data
,
size
);
break
;
case
CODEC_ID_AAC
:
ff_rtp_send_aac
(
s1
,
buf1
,
size
);
ff_rtp_send_aac
(
s1
,
pkt
->
data
,
size
);
break
;
case
CODEC_ID_AMR_NB
:
case
CODEC_ID_AMR_WB
:
ff_rtp_send_amr
(
s1
,
buf1
,
size
);
ff_rtp_send_amr
(
s1
,
pkt
->
data
,
size
);
break
;
case
CODEC_ID_MPEG2TS
:
rtp_send_mpegts_raw
(
s1
,
buf1
,
size
);
rtp_send_mpegts_raw
(
s1
,
pkt
->
data
,
size
);
break
;
case
CODEC_ID_H264
:
ff_rtp_send_h264
(
s1
,
buf1
,
size
);
ff_rtp_send_h264
(
s1
,
pkt
->
data
,
size
);
break
;
case
CODEC_ID_H263
:
case
CODEC_ID_H263P
:
ff_rtp_send_h263
(
s1
,
buf1
,
size
);
ff_rtp_send_h263
(
s1
,
pkt
->
data
,
size
);
break
;
default:
/* better than nothing : send the codec raw data */
rtp_send_raw
(
s1
,
buf1
,
size
);
rtp_send_raw
(
s1
,
pkt
->
data
,
size
);
break
;
}
return
0
;
...
...
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