Commit 05493c6e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/avpacket: correctly set the number of side data elements in av_copy_packet_side_data()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent f95b5d2a
...@@ -237,6 +237,7 @@ int av_copy_packet_side_data(AVPacket *pkt, AVPacket *src) ...@@ -237,6 +237,7 @@ int av_copy_packet_side_data(AVPacket *pkt, AVPacket *src)
pkt->side_data[i].type = src->side_data[i].type; pkt->side_data[i].type = src->side_data[i].type;
} }
} }
pkt->side_data_elems = src->side_data_elems;
return 0; return 0;
failed_alloc: failed_alloc:
......
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