X-Git-Url: http://git.cinelerra-gg.org/git/?a=blobdiff_plain;f=cinelerra-5.1%2Fplugins%2Fyuv%2Fyuv.C;h=c6b7313444d28c91d465e1bd6f8d80a793c8ccd0;hb=1c43268ae0d6d6fad8beff33946e1115a8ec34b2;hp=28d9fc2a33c507f5349a3b60c5f6b5a752f0c7c8;hpb=77815ec03df6a03ed75433e8cf8ae1e83fb76d6e;p=goodguy%2Fhistory.git diff --git a/cinelerra-5.1/plugins/yuv/yuv.C b/cinelerra-5.1/plugins/yuv/yuv.C index 28d9fc2a..c6b73134 100644 --- a/cinelerra-5.1/plugins/yuv/yuv.C +++ b/cinelerra-5.1/plugins/yuv/yuv.C @@ -25,7 +25,7 @@ #include "filexml.h" #include "guicast.h" #include "language.h" -#include "cicolors.h" +#include "bccolors.h" #include "pluginvclient.h" #include "vframe.h" @@ -206,7 +206,7 @@ YUVEffect::~YUVEffect() } -const char* YUVEffect::plugin_title() { return _("YUV"); } +const char* YUVEffect::plugin_title() { return N_("YUV"); } int YUVEffect::is_realtime() { return 1; } @@ -302,6 +302,10 @@ void YUVEffect::read_data(KeyFrame *keyframe) y = temp_type((float)y * y_scale + round); \ u = temp_type((float)(u - (max / 2 + 1)) * u_scale + round) + (max / 2 + 1); \ v = temp_type((float)(v - (max / 2 + 1)) * v_scale + round) + (max / 2 + 1); \ + \ + CLAMP(y, 0, max); \ + CLAMP(u, 0, max); \ + CLAMP(v, 0, max); \ } \ else \ { \