X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=ycbcr_input.cpp;h=65103713df923aa59d38317e183564d04e58e446;hb=b0532d475da098fd6d8a0475e4b106cac6502163;hp=b1ad4ac7ad3249627fc5c7d309c0de8fc6bbe081;hpb=2c9711e213679e11bea1b0e86bb46af442b22ee0;p=movit diff --git a/ycbcr_input.cpp b/ycbcr_input.cpp index b1ad4ac..6510371 100644 --- a/ycbcr_input.cpp +++ b/ycbcr_input.cpp @@ -24,12 +24,10 @@ YCbCrInput::YCbCrInput(const ImageFormat &image_format, pbos[0] = pbos[1] = pbos[2] = 0; texture_num[0] = texture_num[1] = texture_num[2] = 0; - pitch[0] = pitch[1] = pitch[2] = width; - assert(width % ycbcr_format.chroma_subsampling_x == 0); - widths[0] = width; - widths[1] = width / ycbcr_format.chroma_subsampling_x; - widths[2] = width / ycbcr_format.chroma_subsampling_x; + pitch[0] = widths[0] = width; + pitch[1] = widths[1] = width / ycbcr_format.chroma_subsampling_x; + pitch[2] = widths[2] = width / ycbcr_format.chroma_subsampling_x; assert(height % ycbcr_format.chroma_subsampling_y == 0); heights[0] = height; @@ -82,7 +80,7 @@ void YCbCrInput::finalize() check_error(); } - needs_update = false; + needs_update = true; finalized = true; }