diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-08 11:41:30 +0300 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-22 20:16:13 +0300 |
commit | c363843a53553cbda6d42d98e8fbd165eda193fb (patch) | |
tree | fff739d65082077b7cd9b2de9ae6d3ca7e018f44 /libavdevice | |
parent | 5f1c37aefbdcefa1a68ba3ea8bbc7e70aa672960 (diff) |
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')
-rw-r--r-- | libavdevice/iec61883.c | 4 |
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--; |