mirror of https://git.ffmpeg.org/ffmpeg.git
libavcodec: remove av_destruct_packet_nofree()
This function was deprecated two major versions ago (2009). Signed-off-by: Mans Rullgard <mans@mansr.com>
This commit is contained in:
parent
1c56cdad33
commit
cb6632809d
|
@ -3333,11 +3333,6 @@ void avsubtitle_free(AVSubtitle *sub);
|
|||
* @{
|
||||
*/
|
||||
|
||||
/**
|
||||
* @deprecated use NULL instead
|
||||
*/
|
||||
attribute_deprecated void av_destruct_packet_nofree(AVPacket *pkt);
|
||||
|
||||
/**
|
||||
* Default packet destructor.
|
||||
*/
|
||||
|
|
|
@ -25,14 +25,6 @@
|
|||
#include "libavutil/mem.h"
|
||||
#include "avcodec.h"
|
||||
|
||||
void av_destruct_packet_nofree(AVPacket *pkt)
|
||||
{
|
||||
pkt->data = NULL;
|
||||
pkt->size = 0;
|
||||
pkt->side_data = NULL;
|
||||
pkt->side_data_elems = 0;
|
||||
}
|
||||
|
||||
void av_destruct_packet(AVPacket *pkt)
|
||||
{
|
||||
int i;
|
||||
|
@ -131,8 +123,7 @@ int av_dup_packet(AVPacket *pkt)
|
|||
{
|
||||
AVPacket tmp_pkt;
|
||||
|
||||
if (((pkt->destruct == av_destruct_packet_nofree) ||
|
||||
(pkt->destruct == NULL)) && pkt->data) {
|
||||
if (pkt->destruct == NULL && pkt->data) {
|
||||
tmp_pkt = *pkt;
|
||||
|
||||
pkt->data = NULL;
|
||||
|
|
Loading…
Reference in New Issue