1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2025-06-14 22:15:12 +02:00

lavc: Drop deprecated destruct_packet related functions

Deprecated in 10/2012.
This commit is contained in:
Vittorio Giovara
2015-07-28 14:30:23 +01:00
parent dc70c19476
commit 01bcc2d5c2
12 changed files with 2 additions and 144 deletions

View File

@ -1329,21 +1329,11 @@ int ff_alloc_packet(AVPacket *avpkt, int size)
if (avpkt->data) {
AVBufferRef *buf = avpkt->buf;
#if FF_API_DESTRUCT_PACKET
FF_DISABLE_DEPRECATION_WARNINGS
void *destruct = avpkt->destruct;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
if (avpkt->size < size)
return AVERROR(EINVAL);
av_init_packet(avpkt);
#if FF_API_DESTRUCT_PACKET
FF_DISABLE_DEPRECATION_WARNINGS
avpkt->destruct = destruct;
FF_ENABLE_DEPRECATION_WARNINGS
#endif
avpkt->buf = buf;
avpkt->size = size;
return 0;