1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00

avpacket: properly reset data/size in av_packet_move_ref()

It currently just calls av_init_packet(), which does not touch those
fields.
This commit is contained in:
Anton Khirnov 2016-02-25 15:53:17 +01:00
parent ba357e9869
commit dbb43b8b83

View File

@ -398,6 +398,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)