Commit 9a98ddcf authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit 'dbb43b8b'

* commit 'dbb43b8b':
  avpacket: properly reset data/size in av_packet_move_ref()
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 9080dc7f dbb43b8b
...@@ -599,6 +599,8 @@ void av_packet_move_ref(AVPacket *dst, AVPacket *src) ...@@ -599,6 +599,8 @@ void av_packet_move_ref(AVPacket *dst, AVPacket *src)
{ {
*dst = *src; *dst = *src;
av_init_packet(src); av_init_packet(src);
src->data = NULL;
src->size = 0;
} }
void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb) void av_packet_rescale_ts(AVPacket *pkt, AVRational src_tb, AVRational dst_tb)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment