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
0de07510
Commit
0de07510
authored
Feb 19, 2015
by
Martin Storsjö
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rtpdec_h264: Make reusable functions non-static
Signed-off-by:
Martin Storsjö
<
martin@martin.st
>
parent
16163e6b
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
8 deletions
+16
-8
rtpdec_formats.h
libavformat/rtpdec_formats.h
+8
-0
rtpdec_h264.c
libavformat/rtpdec_h264.c
+8
-8
No files found.
libavformat/rtpdec_formats.h
View file @
0de07510
...
...
@@ -35,6 +35,14 @@ int ff_h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
AVStream
*
st
,
AVPacket
*
pkt
,
uint32_t
*
timestamp
,
const
uint8_t
*
buf
,
int
len
,
uint16_t
seq
,
int
flags
);
int
ff_h264_parse_sprop_parameter_sets
(
AVFormatContext
*
s
,
uint8_t
**
data_ptr
,
int
*
size_ptr
,
const
char
*
value
);
int
ff_h264_handle_aggregated_packet
(
AVFormatContext
*
ctx
,
AVPacket
*
pkt
,
const
uint8_t
*
buf
,
int
len
,
int
start_skip
,
int
*
nal_counters
,
int
nal_mask
);
extern
RTPDynamicProtocolHandler
ff_amr_nb_dynamic_handler
;
extern
RTPDynamicProtocolHandler
ff_amr_wb_dynamic_handler
;
extern
RTPDynamicProtocolHandler
ff_g726_16_dynamic_handler
;
...
...
libavformat/rtpdec_h264.c
View file @
0de07510
...
...
@@ -95,7 +95,7 @@ static void parse_profile_level_id(AVFormatContext *s,
h264_data
->
level_idc
=
level_idc
;
}
static
int
parse_sprop_parameter_sets
(
AVFormatContext
*
s
,
int
ff_h264_
parse_sprop_parameter_sets
(
AVFormatContext
*
s
,
uint8_t
**
data_ptr
,
int
*
size_ptr
,
const
char
*
value
)
{
...
...
@@ -170,7 +170,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
int
ret
;
codec
->
extradata_size
=
0
;
av_freep
(
&
codec
->
extradata
);
ret
=
parse_sprop_parameter_sets
(
s
,
&
codec
->
extradata
,
ret
=
ff_h264_
parse_sprop_parameter_sets
(
s
,
&
codec
->
extradata
,
&
codec
->
extradata_size
,
value
);
av_log
(
s
,
AV_LOG_DEBUG
,
"Extradata set to %p (size: %d)
\n
"
,
codec
->
extradata
,
codec
->
extradata_size
);
...
...
@@ -179,7 +179,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
return
0
;
}
static
int
h264_handle_packet_stap_a
(
AVFormatContext
*
ctx
,
AVPacket
*
pkt
,
int
ff_h264_handle_aggregated_packet
(
AVFormatContext
*
ctx
,
AVPacket
*
pkt
,
const
uint8_t
*
buf
,
int
len
,
int
start_skip
,
int
*
nal_counters
,
int
nal_mask
)
...
...
@@ -315,7 +315,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
// consume the STAP-A NAL
buf
++
;
len
--
;
result
=
h264_handle_packet_stap_a
(
ctx
,
pkt
,
buf
,
len
,
0
,
result
=
ff_h264_handle_aggregated_packet
(
ctx
,
pkt
,
buf
,
len
,
0
,
NAL_COUNTERS
,
NAL_MASK
);
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