mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-02 20:35:37 +02:00
Merge commit '0de07510844517b615ef2a2e2916f6391ad88687'
* commit '0de07510844517b615ef2a2e2916f6391ad88687': rtpdec_h264: Make reusable functions non-static Conflicts: libavformat/rtpdec_formats.h libavformat/rtpdec_h264.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
commit
a10529a319
@ -35,6 +35,14 @@ int ff_h263_handle_packet(AVFormatContext *ctx, PayloadContext *data,
|
|||||||
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
|
AVStream *st, AVPacket *pkt, uint32_t *timestamp,
|
||||||
const uint8_t *buf, int len, uint16_t seq, int flags);
|
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, PayloadContext *data, AVPacket *pkt,
|
||||||
|
const uint8_t *buf, int len,
|
||||||
|
int start_skip, int *nal_counters,
|
||||||
|
int nal_mask);
|
||||||
|
|
||||||
extern RTPDynamicProtocolHandler ff_ac3_dynamic_handler;
|
extern RTPDynamicProtocolHandler ff_ac3_dynamic_handler;
|
||||||
extern RTPDynamicProtocolHandler ff_amr_nb_dynamic_handler;
|
extern RTPDynamicProtocolHandler ff_amr_nb_dynamic_handler;
|
||||||
extern RTPDynamicProtocolHandler ff_amr_wb_dynamic_handler;
|
extern RTPDynamicProtocolHandler ff_amr_wb_dynamic_handler;
|
||||||
|
@ -95,7 +95,7 @@ static void parse_profile_level_id(AVFormatContext *s,
|
|||||||
h264_data->level_idc = level_idc;
|
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,
|
uint8_t **data_ptr, int *size_ptr,
|
||||||
const char *value)
|
const char *value)
|
||||||
{
|
{
|
||||||
@ -170,7 +170,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
|
|||||||
int ret;
|
int ret;
|
||||||
codec->extradata_size = 0;
|
codec->extradata_size = 0;
|
||||||
av_freep(&codec->extradata);
|
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);
|
&codec->extradata_size, value);
|
||||||
av_log(s, AV_LOG_DEBUG, "Extradata set to %p (size: %d)\n",
|
av_log(s, AV_LOG_DEBUG, "Extradata set to %p (size: %d)\n",
|
||||||
codec->extradata, codec->extradata_size);
|
codec->extradata, codec->extradata_size);
|
||||||
@ -179,7 +179,7 @@ static int sdp_parse_fmtp_config_h264(AVFormatContext *s,
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int h264_handle_packet_stap_a(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
|
int ff_h264_handle_aggregated_packet(AVFormatContext *ctx, PayloadContext *data, AVPacket *pkt,
|
||||||
const uint8_t *buf, int len,
|
const uint8_t *buf, int len,
|
||||||
int start_skip, int *nal_counters,
|
int start_skip, int *nal_counters,
|
||||||
int nal_mask)
|
int nal_mask)
|
||||||
@ -315,7 +315,7 @@ static int h264_handle_packet(AVFormatContext *ctx, PayloadContext *data,
|
|||||||
// consume the STAP-A NAL
|
// consume the STAP-A NAL
|
||||||
buf++;
|
buf++;
|
||||||
len--;
|
len--;
|
||||||
result = h264_handle_packet_stap_a(ctx, data, pkt, buf, len, 0,
|
result = ff_h264_handle_aggregated_packet(ctx, data, pkt, buf, len, 0,
|
||||||
NAL_COUNTERS, NAL_MASK);
|
NAL_COUNTERS, NAL_MASK);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user