Skip to content

Commit

Permalink
Fix yuv420p is not scaled when requested
Browse files Browse the repository at this point in the history
  • Loading branch information
bmatherly committed May 13, 2023
1 parent 2ce1cf5 commit f8b5948
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/modules/core/filter_rescale.c
Original file line number Diff line number Diff line change
Expand Up @@ -239,8 +239,8 @@ static int filter_get_image(mlt_frame frame,
interps);

// If valid colorspace
if (*format == mlt_image_yuv422 || *format == mlt_image_rgb
|| *format == mlt_image_rgba) {
if (*format == mlt_image_yuv422 || *format == mlt_image_rgb || *format == mlt_image_rgba
|| *format == mlt_image_yuv420p) {
// Call the virtual function
scaler_method(frame, image, format, iwidth, iheight, owidth, oheight);
*width = owidth;
Expand Down

0 comments on commit f8b5948

Please sign in to comment.