From: Andoni Morales Alastruey Date: Fri, 18 Apr 2014 18:12:37 +0000 (+0200) Subject: vtenc: fix complier error using fixed lenght arrays X-Git-Tag: 1.19.3~507^2~11363 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=110c21a13676f17b426fbbe37cdc2ee215520c40;p=platform%2Fupstream%2Fgstreamer.git vtenc: fix complier error using fixed lenght arrays --- diff --git a/sys/applemedia/vtenc.c b/sys/applemedia/vtenc.c index 7d028ab..9d49534 100644 --- a/sys/applemedia/vtenc.c +++ b/sys/applemedia/vtenc.c @@ -780,10 +780,10 @@ gst_vtenc_encode_frame (GstVTEnc * self, GstBuffer * buf) { const size_t num_planes = GST_VIDEO_FRAME_N_PLANES (&frame->videoframe); - void *plane_base_addresses[num_planes]; - size_t plane_widths[num_planes]; - size_t plane_heights[num_planes]; - size_t plane_bytes_per_row[num_planes]; + void *plane_base_addresses[GST_VIDEO_MAX_PLANES]; + size_t plane_widths[GST_VIDEO_MAX_PLANES]; + size_t plane_heights[GST_VIDEO_MAX_PLANES]; + size_t plane_bytes_per_row[GST_VIDEO_MAX_PLANES]; OSType pixel_format_type; size_t i;