ffmpeg | branch: master | Vittorio Giovara <vittorio.giov...@gmail.com> | Wed 
Jul 13 11:41:35 2016 -0400| [0b1bd1b2057d41fd0ccba7317911c484a50f9207] | 
committer: Vittorio Giovara

lavd: Drop unneeded av_init_packet()s

The input packet is already unref'd by the calling function.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=0b1bd1b2057d41fd0ccba7317911c484a50f9207
---

 libavdevice/v4l2.c    | 1 -
 libavdevice/x11grab.c | 1 -
 2 files changed, 2 deletions(-)

diff --git a/libavdevice/v4l2.c b/libavdevice/v4l2.c
index 74fec51..47241e4 100644
--- a/libavdevice/v4l2.c
+++ b/libavdevice/v4l2.c
@@ -861,7 +861,6 @@ FF_ENABLE_DEPRECATION_WARNINGS
 #endif
     int res;
 
-    av_init_packet(pkt);
     if ((res = mmap_read_frame(s1, pkt)) < 0) {
         return res;
     }
diff --git a/libavdevice/x11grab.c b/libavdevice/x11grab.c
index da2bfa0..60e2560 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;

_______________________________________________
ffmpeg-cvslog mailing list
ffmpeg-cvslog@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog

Reply via email to