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

Function write_packets_common

libavformat/mux.c:1151–1174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1149}
1150
1151static int write_packets_common(AVFormatContext *s, AVPacket *pkt, int interleaved)
1152{
1153 AVStream *st;
1154 FFStream *sti;
1155 int ret = check_packet(s, pkt);
1156 if (ret < 0)
1157 return ret;
1158 st = s->streams[pkt->stream_index];
1159 sti = ffstream(st);
1160
1161 ret = prepare_input_packet(s, st, pkt);
1162 if (ret < 0)
1163 return ret;
1164
1165 ret = check_bitstream(s, sti, pkt);
1166 if (ret < 0)
1167 return ret;
1168
1169 if (sti->bsfc) {
1170 return write_packets_from_bsfs(s, st, pkt, interleaved);
1171 } else {
1172 return write_packet_common(s, st, pkt, interleaved);
1173 }
1174}
1175
1176int av_write_frame(AVFormatContext *s, AVPacket *in)
1177{

Callers 2

av_write_frameFunction · 0.85

Calls 6

check_packetFunction · 0.85
ffstreamFunction · 0.85
prepare_input_packetFunction · 0.85
check_bitstreamFunction · 0.85
write_packets_from_bsfsFunction · 0.85
write_packet_commonFunction · 0.85

Tested by

no test coverage detected