summaryrefslogtreecommitdiff
path: root/ffmpeg.c
diff options
context:
space:
mode:
authorHendrik Leppkes <h.leppkes@gmail.com>2015-09-05 16:51:53 +0200
committerHendrik Leppkes <h.leppkes@gmail.com>2015-09-05 16:51:53 +0200
commit83a5df54eae6dddea7c453fd25c45c7b9c148925 (patch)
treedd2055e828b1c4dce1b80b0f077c4a658e7700f7 /ffmpeg.c
parent87c88122703f2befcf96383d05bdf14373c22df9 (diff)
Remove left-over FF_API_DESTRUCT_PACKET cruft
Diffstat (limited to 'ffmpeg.c')
-rw-r--r--ffmpeg.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ffmpeg.c b/ffmpeg.c
index d9b8c0bfff..76094575c9 100644
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -692,13 +692,7 @@ static void write_frame(AVFormatContext *s, AVPacket *pkt, OutputStream *ost)
&new_pkt.data, &new_pkt.size,
pkt->data, pkt->size,
pkt->flags & AV_PKT_FLAG_KEY);
-FF_DISABLE_DEPRECATION_WARNINGS
- if(a == 0 && new_pkt.data != pkt->data
-#if FF_API_DESTRUCT_PACKET
- && new_pkt.destruct
-#endif
- ) {
-FF_ENABLE_DEPRECATION_WARNINGS
+ if(a == 0 && new_pkt.data != pkt->data) {
uint8_t *t = av_malloc(new_pkt.size + AV_INPUT_BUFFER_PADDING_SIZE); //the new should be a subset of the old so cannot overflow
if(t) {
memcpy(t, new_pkt.data, new_pkt.size);