summaryrefslogtreecommitdiff
path: root/libavdevice/v4l2.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2015-07-28 14:30:23 +0100
committerVittorio Giovara <vittorio.giovara@gmail.com>2015-08-28 16:01:16 +0200
commit01bcc2d5c23fa757d163530abb396fd02f1be7c8 (patch)
tree1c15e03246819b364d1cfc691c6bbfd9db784955 /libavdevice/v4l2.c
parentdc70c19476e76f1118df73b5d97cc76f0e5f6f6c (diff)
downloadffmpeg-01bcc2d5c23fa757d163530abb396fd02f1be7c8.tar.gz
lavc: Drop deprecated destruct_packet related functions
Deprecated in 10/2012.
Diffstat (limited to 'libavdevice/v4l2.c')
-rw-r--r--libavdevice/v4l2.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index a2b49c6002..7b3568224f 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -421,13 +421,6 @@ static int mmap_init(AVFormatContext *ctx)
return 0;
}
-#if FF_API_DESTRUCT_PACKET
-static void dummy_release_buffer(AVPacket *pkt)
-{
- av_assert0(0);
-}
-#endif
-
static void mmap_release_buffer(void *opaque, uint8_t *data)
{
struct v4l2_buffer buf = { 0 };
@@ -524,11 +517,6 @@ static int mmap_read_frame(AVFormatContext *ctx, AVPacket *pkt)
pkt->data = s->buf_start[buf.index];
pkt->size = buf.bytesused;
-#if FF_API_DESTRUCT_PACKET
-FF_DISABLE_DEPRECATION_WARNINGS
- pkt->destruct = dummy_release_buffer;
-FF_ENABLE_DEPRECATION_WARNINGS
-#endif
buf_descriptor = av_malloc(sizeof(struct buff_data));
if (!buf_descriptor) {