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

Function flush_packet_queue

libavformat/utils.c:1229–1250  ·  view source on GitHub ↗

XXX: suppress the packet queue */

Source from the content-addressed store, hash-verified

1227
1228/* XXX: suppress the packet queue */
1229static void flush_packet_queue(AVFormatContext *s)
1230{
1231 AVPacketList *pktl;
1232
1233 for(;;) {
1234 pktl = s->packet_buffer;
1235 if (!pktl)
1236 break;
1237 s->packet_buffer = pktl->next;
1238 av_free_packet(&pktl->pkt);
1239 av_free(pktl);
1240 }
1241 while(s->raw_packet_buffer){
1242 pktl = s->raw_packet_buffer;
1243 s->raw_packet_buffer = pktl->next;
1244 av_free_packet(&pktl->pkt);
1245 av_free(pktl);
1246 }
1247 s->packet_buffer_end=
1248 s->raw_packet_buffer_end= NULL;
1249 s->raw_packet_buffer_remaining_size = RAW_PACKET_BUFFER_SIZE;
1250}
1251
1252/*******************************************************/
1253/* seek support */

Callers 3

ff_read_frame_flushFunction · 0.85
av_close_input_streamFunction · 0.85

Calls 2

av_free_packetFunction · 0.85
av_freeFunction · 0.85

Tested by

no test coverage detected