diff options
author | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-08 10:41:30 +0200 |
---|---|---|
committer | Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com> | 2015-08-22 19:16:13 +0200 |
commit | c363843a53553cbda6d42d98e8fbd165eda193fb (patch) | |
tree | fff739d65082077b7cd9b2de9ae6d3ca7e018f44 /libavformat/tee.c | |
parent | 5f1c37aefbdcefa1a68ba3ea8bbc7e70aa672960 (diff) | |
download | ffmpeg-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 'libavformat/tee.c')
-rw-r--r-- | libavformat/tee.c | 8 |
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; |