Browse Source

libavcodec: remove av_destruct_packet_nofree()

This function was deprecated two major versions ago (2009).

Signed-off-by: Mans Rullgard <mans@mansr.com>
tags/n1.0
Mans Rullgard 13 years ago
parent
commit
cb6632809d
2 changed files with 1 additions and 15 deletions
  1. +0
    -5
      libavcodec/avcodec.h
  2. +1
    -10
      libavcodec/avpacket.c

+ 0
- 5
libavcodec/avcodec.h View File

@@ -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.
*/


+ 1
- 10
libavcodec/avpacket.c View File

@@ -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…
Cancel
Save