Skip to content

Commit efa730d

Browse files
committed
gstreamer video player: fix typo in plane size calculation
- `i ==> plane_index` - only applies to gstreamer >= 1.21.3
1 parent 8d6cccb commit efa730d

File tree

1 file changed

+3
-3
lines changed
  • src/plugins/gstreamer_video_player

1 file changed

+3
-3
lines changed

src/plugins/gstreamer_video_player/frame.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@ static bool calculate_plane_size(const GstVideoInfo *info, int plane_index, size
515515

516516
#if THIS_GSTREAMER_VER >= GSTREAMER_VER(1, 21, 3)
517517
if (GST_VIDEO_FORMAT_INFO_IS_TILED(info->finfo)) {
518-
guint x_tiles = GST_VIDEO_TILE_X_TILES(info->stride[i]);
519-
guint y_tiles = GST_VIDEO_TILE_Y_TILES(info->stride[i]);
520-
return x_tiles * y_tiles * GST_VIDEO_FORMAT_INFO_TILE_SIZE(info->finfo, i);
518+
guint x_tiles = GST_VIDEO_TILE_X_TILES(info->stride[plane_index]);
519+
guint y_tiles = GST_VIDEO_TILE_Y_TILES(info->stride[plane_index]);
520+
return x_tiles * y_tiles * GST_VIDEO_FORMAT_INFO_TILE_SIZE(info->finfo, plane_index);
521521
}
522522
#endif
523523

0 commit comments

Comments
 (0)