Showing the changes to libavdevice/decklink_dec.cpp (1 of 59 files). Show all
Unified · Split
| @@ -48,7 +48,7 @@ static void avpacket_queue_flush(AVPacketQueue *q) · 47 unmodified lines | ||
| 48 | 48 | pthread_mutex_lock(&q->mutex); |
| 49 | 49 | for (pkt = q->first_pkt; pkt != NULL; pkt = pkt1) { |
| 50 | 50 | pkt1 = pkt->next; |
| 51 | − av_free_packet(&pkt->pkt); | |
| 51 | + av_packet_unref(&pkt->pkt); | |
| 52 | 52 | av_freep(&pkt); |
| 53 | 53 | } |
| 54 | 54 | q->last_pkt = NULL; |