mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-29 23:32:33 +00:00
Revert "video-frame: avoid possible out of bound memory access"
This reverts commit c4255f08f7
.
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2239>
This commit is contained in:
parent
fc31be0917
commit
e0ad0eda23
1 changed files with 2 additions and 4 deletions
|
@ -283,7 +283,7 @@ scale_tile_shifts (const GstVideoFormatInfo * finfo, gint plane, guint * ws,
|
||||||
guint * hs)
|
guint * hs)
|
||||||
{
|
{
|
||||||
gint comp[GST_VIDEO_MAX_COMPONENTS];
|
gint comp[GST_VIDEO_MAX_COMPONENTS];
|
||||||
gint i = 1;
|
gint i;
|
||||||
|
|
||||||
gst_video_format_info_component (finfo, plane, comp);
|
gst_video_format_info_component (finfo, plane, comp);
|
||||||
|
|
||||||
|
@ -294,10 +294,8 @@ scale_tile_shifts (const GstVideoFormatInfo * finfo, gint plane, guint * ws,
|
||||||
/* for each additional component in the same plane, double the tile width,
|
/* for each additional component in the same plane, double the tile width,
|
||||||
* this should provide the appropriate tile size when the tile size varies
|
* this should provide the appropriate tile size when the tile size varies
|
||||||
* base on the subsampling. */
|
* base on the subsampling. */
|
||||||
while (i < GST_VIDEO_MAX_COMPONENTS && comp[i] >= 0) {
|
for (i = 1; comp[i] >= 0; i++)
|
||||||
*ws += 1;
|
*ws += 1;
|
||||||
i++;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue