MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / ff_rtp_finalize_packet

Function ff_rtp_finalize_packet

libavformat/rtpdec.c:984–997  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

982}
983
984int ff_rtp_finalize_packet(AVPacket *pkt, AVIOContext **dyn_buf, int stream_idx)
985{
986 int ret;
987 av_packet_unref(pkt);
988
989 pkt->size = avio_close_dyn_buf(*dyn_buf, &pkt->data);
990 pkt->stream_index = stream_idx;
991 *dyn_buf = NULL;
992 if ((ret = av_packet_from_data(pkt, pkt->data, pkt->size)) < 0) {
993 av_freep(&pkt->data);
994 return ret;
995 }
996 return pkt->size;
997}

Callers 11

xiph_handle_packetFunction · 0.85
vp9_handle_packetFunction · 0.85
vp8_handle_packetFunction · 0.85
mpa_robust_parse_packetFunction · 0.85
ac3_handle_packetFunction · 0.85
dv_handle_packetFunction · 0.85
h263_handle_packetFunction · 0.85
h261_handle_packetFunction · 0.85
svq3_parse_packetFunction · 0.85
jpeg_parse_packetFunction · 0.85

Calls 4

av_packet_unrefFunction · 0.85
avio_close_dyn_bufFunction · 0.85
av_packet_from_dataFunction · 0.85
av_freepFunction · 0.85

Tested by

no test coverage detected