diff options
author | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-04-11 16:42:29 +0400 |
---|---|---|
committer | Reimar Döffinger <Reimar.Doeffinger@gmx.de> | 2009-04-11 16:42:29 +0400 |
commit | 80d403fc195dd81463a9fcaac94ea55dd682867f (patch) | |
tree | 7d3d4b8b66ab38acb00dad8fb0c947e42143e7c2 /libavcodec/avcodec.h | |
parent | e161e007be2ca2df1e560470f94d4038dd841d67 (diff) |
Get rid of av_destruct_packet_nofree and use NULL instead.
It is still used in comparisons to keep ABI compatibility.
Originally committed as revision 18431 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/avcodec.h')
-rw-r--r-- | libavcodec/avcodec.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/libavcodec/avcodec.h b/libavcodec/avcodec.h index f500151e85..cb64d82f93 100644 --- a/libavcodec/avcodec.h +++ b/libavcodec/avcodec.h @@ -2630,7 +2630,10 @@ typedef struct AVSubtitle { /* packet functions */ -void av_destruct_packet_nofree(AVPacket *pkt); +/** + * @deprecated use NULL instead + */ +attribute_deprecated void av_destruct_packet_nofree(AVPacket *pkt); /** * Default packet destructor. @@ -2675,8 +2678,9 @@ int av_dup_packet(AVPacket *pkt); */ static inline void av_free_packet(AVPacket *pkt) { - if (pkt && pkt->destruct) { - pkt->destruct(pkt); + if (pkt) { + if (pkt->destruct) pkt->destruct(pkt); + pkt->data = NULL; pkt->size = 0; } } |