[FFmpeg-cvslog] Merge commit 'dbb43b8b83b097585ec255ec638b61e359ebea77'

Derek Buitenhuis git at videolan.org
Tue Apr 12 16:39:28 CEST 2016


ffmpeg | branch: master | Derek Buitenhuis <derek.buitenhuis at gmail.com> | Tue Apr 12 15:39:01 2016 +0100| [9a98ddcf1b303729f38e298c441d9975b8b7ee6e] | committer: Derek Buitenhuis

Merge commit 'dbb43b8b83b097585ec255ec638b61e359ebea77'

* commit 'dbb43b8b83b097585ec255ec638b61e359ebea77':
  avpacket: properly reset data/size in av_packet_move_ref()

Merged-by: Derek Buitenhuis <derek.buitenhuis at gmail.com>

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

 libavcodec/avpacket.c |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index 97f079f..e75c617 100644
--- a/libavcodec/avpacket.c
+++ b/libavcodec/avpacket.c
@@ -599,6 +599,8 @@ void av_packet_move_ref(AVPacket *dst, AVPacket *src)
 {
     *dst = *src;
     av_init_packet(src);
+    src->data = NULL;
+    src->size = 0;
 }
 
 void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb)


======================================================================




More information about the ffmpeg-cvslog mailing list