Menu

#80 Segmentation fault in packet.c

next
open
nobody
None
2025-11-17
2025-11-17
No

Segfault occurs when stopping video capture with raw encoding (mjpeg stream from camera). The origin is spacket_list_free() in gview_encoder/packet.c. The following patch may help:
--- packet.c<-->2025-11-17 11:08:35.330947983 +0200
+++ packet.c<-->2025-11-17 11:09:12.949949045 +0200
@@ -72,6 +72,7 @@
.
/clean the packet list/
void spacket_list_free(SPacket_list_t* spkt_list) {

  • if(spkt_list == NULL ) return;
    while (spkt_list->head != NULL) {
    SPacket_list_item_t* spkt_l_item = spkt_list->head;
    spkt_list->head = spkt_l_item->next;

Discussion


Log in to post a comment.

MongoDB Logo MongoDB