avpacket: fix duplicating side data.

Use correct side data size instead of just zeroed field.
This commit is contained in:
Anton Khirnov 2012-06-02 13:49:13 +02:00
parent 21e2dc9fb7
commit cf3a1948e9

View File

@ -146,7 +146,7 @@ int av_dup_packet(AVPacket *pkt)
pkt->side_data_elems * sizeof(*pkt->side_data));
for (i = 0; i < pkt->side_data_elems; i++)
DUP_DATA(pkt->side_data[i].data, tmp_pkt.side_data[i].data,
pkt->side_data[i].size, 1);
tmp_pkt.side_data[i].size, 1);
}
}
return 0;