[FFmpeg-cvslog] avcodec/avpacket: correctly set the number of side data elements in av_copy_packet_side_data ()

Michael Niedermayer git at videolan.org
Wed Nov 20 00:29:10 CET 2013


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Wed Nov 20 00:14:06 2013 +0100| [05493c6e724a04ac6850814ed49551845e8b884e] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=05493c6e724a04ac6850814ed49551845e8b884e
---

 libavcodec/avpacket.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/libavcodec/avpacket.c b/libavcodec/avpacket.c
index d9cfb38..bce3a58 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:



More information about the ffmpeg-cvslog mailing list