summaryrefslogtreecommitdiff
path: root/libavformat/mux.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 /libavformat/mux.c
parent5f1c37aefbdcefa1a68ba3ea8bbc7e70aa672960 (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 'libavformat/mux.c')
-rw-r--r--libavformat/mux.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavformat/mux.c b/libavformat/mux.c
index 84c6d24919..7664872a4a 100644
--- a/libavformat/mux.c
+++ b/libavformat/mux.c
@@ -1045,7 +1045,11 @@ int ff_write_chained(AVFormatContext *dst, int dst_stream, AVPacket *pkt,
pkt->buf = local_pkt.buf;
pkt->side_data = local_pkt.side_data;
pkt->side_data_elems = local_pkt.side_data_elems;
+#if FF_API_DESTRUCT_PACKET
+FF_DISABLE_DEPRECATION_WARNINGS
pkt->destruct = local_pkt.destruct;
+FF_ENABLE_DEPRECATION_WARNINGS
+#endif
return ret;
}