return res == 1 ? -1 : res;
}
-static PayloadContext *asfrtp_new_context(void)
-{
- return av_mallocz(sizeof(PayloadContext));
-}
-
static void asfrtp_free_context(PayloadContext *asf)
{
if (asf->pktbuf) {
.enc_name = s, \
.codec_type = t, \
.codec_id = AV_CODEC_ID_NONE, \
+ .priv_data_size = sizeof(PayloadContext), \
.parse_sdp_a_line = asfrtp_parse_sdp_line, \
- .alloc = asfrtp_new_context, \
.free = asfrtp_free_context, \
.parse_packet = asfrtp_parse_packet, \
}