From 05493c6e724a04ac6850814ed49551845e8b884e Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Wed, 20 Nov 2013 00:14:06 +0100 Subject: [PATCH] avcodec/avpacket: correctly set the number of side data elements in av_copy_packet_side_data() Signed-off-by: Michael Niedermayer --- libavcodec/avpacket.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c index d9cfb38e24..bce3a5890b 100644 --- a/libavcodec/avpacket.c +++ b/libavcodec/avpacket.c @@ -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_elems = src->side_data_elems; return 0; failed_alloc: