aboutsummaryrefslogtreecommitdiffstats
path: root/libavdevice/x11grab.c
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-07-13 11:41:35 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-07-13 18:20:27 -0400
commit0b1bd1b2057d41fd0ccba7317911c484a50f9207 (patch)
tree2be4ee493ff6f859c167d129df3ae7181bfe9bf0 /libavdevice/x11grab.c
parent390b95b88b2b896b63f257f69e434dfc0111e076 (diff)
downloadffmpeg-0b1bd1b2057d41fd0ccba7317911c484a50f9207.tar.gz
lavd: Drop unneeded av_init_packet()s
The input packet is already unref'd by the calling function.
Diffstat (limited to 'libavdevice/x11grab.c')
-rw-r--r--libavdevice/x11grab.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index da2bfa04ec..60e2560d6b 100644
--- a/libavdevice/x11grab.c
+++ b/libavdevice/x11grab.c
@@ -511,7 +511,6 @@ static int x11grab_read_packet(AVFormatContext *s1, AVPacket *pkt)
nanosleep(&ts, NULL);
}
- av_init_packet(pkt);
pkt->data = image->data;
pkt->size = s->frame_size;
pkt->pts = curtime;