Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/tee.c')
-rw-r--r--libavformat/tee.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/libavformat/tee.c b/libavformat/tee.c
index e3d466a3eb..bc2e522f7c 100644
--- a/libavformat/tee.c
+++ b/libavformat/tee.c
@@ -396,7 +396,13 @@ static int filter_packet(void *log_ctx, AVPacket *pkt,
&new_pkt.data, &new_pkt.size,
pkt->data, pkt->size,
pkt->flags & AV_PKT_FLAG_KEY);
- if (ret == 0 && new_pkt.data != pkt->data && new_pkt.destruct) {
+FF_DISABLE_DEPRECATION_WARNINGS
+ if (ret == 0 && new_pkt.data != pkt->data
+#if FF_API_DESTRUCT_PACKET
+ && new_pkt.destruct
+#endif
+ ) {
+FF_ENABLE_DEPRECATION_WARNINGS
if ((ret = av_copy_packet(&new_pkt, pkt)) < 0)
break;
ret = 1;