mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
video-converter: Use G_N_ELEMENTS instead of writing it out manually
This commit is contained in:
parent
bcc1d666ec
commit
2bc1b38825
1 changed files with 1 additions and 1 deletions
|
@ -6712,7 +6712,7 @@ video_converter_lookup_fastpath (GstVideoConverter * convert)
|
|||
|| convert->out_width < convert->out_maxwidth
|
||||
|| convert->out_height < convert->out_maxheight;
|
||||
|
||||
for (i = 0; i < sizeof (transforms) / sizeof (transforms[0]); i++) {
|
||||
for (i = 0; i < G_N_ELEMENTS (transforms); i++) {
|
||||
if (transforms[i].in_format == in_format &&
|
||||
transforms[i].out_format == out_format &&
|
||||
(transforms[i].keeps_interlaced || !interlaced) &&
|
||||
|
|
Loading…
Reference in a new issue