summaryrefslogtreecommitdiff
path: root/libavdevice/iec61883.c
diff options
context:
space:
mode:
authorAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-08-08 10:41:30 +0200
committerAndreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>2015-08-22 19:16:13 +0200
commitc363843a53553cbda6d42d98e8fbd165eda193fb (patch)
treefff739d65082077b7cd9b2de9ae6d3ca7e018f44 /libavdevice/iec61883.c
parent5f1c37aefbdcefa1a68ba3ea8bbc7e70aa672960 (diff)
downloadffmpeg-c363843a53553cbda6d42d98e8fbd165eda193fb.tar.gz
add missing FF_API_DESTRUCT_PACKET guards
Reviewed-by: wm4 <nfxjfg@googlemail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Diffstat (limited to 'libavdevice/iec61883.c')
-rw-r--r--libavdevice/iec61883.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavdevice/iec61883.c b/libavdevice/iec61883.c
index 5c74cc7729..8ee834e07e 100644
--- a/libavdevice/iec61883.c
+++ b/libavdevice/iec61883.c
@@ -198,7 +198,11 @@ static int iec61883_parse_queue_dv(struct iec61883_data *dv, AVPacket *pkt)
size = avpriv_dv_produce_packet(dv->dv_demux, pkt,
packet->buf, packet->len, -1);
+#if FF_API_DESTRUCT_PACKET
+FF_DISABLE_DEPRECATION_WARNINGS
pkt->destruct = av_destruct_packet;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
dv->queue_first = packet->next;
av_free(packet);
dv->packets--;