XXX: suppress the packet queue */
| 1227 | |
| 1228 | /* XXX: suppress the packet queue */ |
| 1229 | static 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 */ |
no test coverage detected