diff options
author | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-12 15:39:01 +0100 |
---|---|---|
committer | Derek Buitenhuis <derek.buitenhuis@gmail.com> | 2016-04-12 15:39:10 +0100 |
commit | 9a98ddcf1b303729f38e298c441d9975b8b7ee6e (patch) | |
tree | f99724d82825662c9eaea0920ad2f165f9ca23ca | |
parent | 9080dc7f0742046ec42b717a151c8be6e90211ae (diff) | |
parent | dbb43b8b83b097585ec255ec638b61e359ebea77 (diff) | |
download | ffmpeg-9a98ddcf1b303729f38e298c441d9975b8b7ee6e.tar.gz |
Merge commit 'dbb43b8b83b097585ec255ec638b61e359ebea77'
* commit 'dbb43b8b83b097585ec255ec638b61e359ebea77':
avpacket: properly reset data/size in av_packet_move_ref()
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
-rw-r--r-- | libavcodec/avpacket.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index 97f079f901..e75c6170dd 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) |