Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFmpeg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
libremedia
Tethys
FFmpeg
Commits
f3f60dcb
Commit
f3f60dcb
authored
12 years ago
by
Martin Storsjö
Browse files
Options
Downloads
Patches
Plain Diff
rtpdec_mpeg4: Cosmetic cleanup
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
584a0179
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libavformat/rtpdec_mpeg4.c
+7
-12
7 additions, 12 deletions
libavformat/rtpdec_mpeg4.c
with
7 additions
and
12 deletions
libavformat/rtpdec_mpeg4.c
+
7
−
12
View file @
f3f60dcb
...
...
@@ -32,9 +32,8 @@
#include
"libavutil/avstring.h"
#include
"libavcodec/get_bits.h"
/** Structure listing useful vars to parse RTP packet payload*/
struct
PayloadContext
{
/** Structure listing useful vars to parse RTP packet payload */
struct
PayloadContext
{
int
sizelength
;
int
indexlength
;
int
indexdeltalength
;
...
...
@@ -69,8 +68,7 @@ typedef struct {
/* All known fmtp parameters and the corresponding RTPAttrTypeEnum */
#define ATTR_NAME_TYPE_INT 0
#define ATTR_NAME_TYPE_STR 1
static
const
AttrNameMap
attr_names
[]
=
{
static
const
AttrNameMap
attr_names
[]
=
{
{
"SizeLength"
,
ATTR_NAME_TYPE_INT
,
offsetof
(
PayloadContext
,
sizelength
)
},
{
"IndexLength"
,
ATTR_NAME_TYPE_INT
,
...
...
@@ -91,14 +89,14 @@ static PayloadContext *new_context(void)
return
av_mallocz
(
sizeof
(
PayloadContext
));
}
static
void
free_context
(
PayloadContext
*
data
)
static
void
free_context
(
PayloadContext
*
data
)
{
av_free
(
data
->
au_headers
);
av_free
(
data
->
mode
);
av_free
(
data
);
}
static
int
parse_fmtp_config
(
AVCodecContext
*
codec
,
char
*
value
)
static
int
parse_fmtp_config
(
AVCodecContext
*
codec
,
char
*
value
)
{
/* decode the hexa encoded parameter */
int
len
=
ff_hex_to_data
(
NULL
,
value
);
...
...
@@ -159,11 +157,8 @@ static int rtp_parse_mp4_au(PayloadContext *data, const uint8_t *buf)
/* Follows RFC 3640 */
static
int
aac_parse_packet
(
AVFormatContext
*
ctx
,
PayloadContext
*
data
,
AVStream
*
st
,
AVPacket
*
pkt
,
uint32_t
*
timestamp
,
static
int
aac_parse_packet
(
AVFormatContext
*
ctx
,
PayloadContext
*
data
,
AVStream
*
st
,
AVPacket
*
pkt
,
uint32_t
*
timestamp
,
const
uint8_t
*
buf
,
int
len
,
int
flags
)
{
if
(
rtp_parse_mp4_au
(
data
,
buf
))
...
...
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