Skip to content

Commit effa137

Browse files
committed
ConvertToPlanarRGB pass unly the needed width for alpha conversion, target may be less
1 parent 297ea0f commit effa137

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

avs_core/convert/convert_planar.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1100,7 +1100,7 @@ PVideoFrame __stdcall ConvertYUV444ToRGB::GetFrame(int n, IScriptEnvironment* en
11001100
// RGBPA target + different bit-depth
11011101
// Alpha bit depth conversion needed, normal planes are done in-process.
11021102
// we need only conv_function_a, proper dispatching from ConvertBits
1103-
conv_function_a(src->GetReadPtr(PLANAR_A), dstpA, src->GetRowSize(PLANAR_A_ALIGNED), heightA, src->GetPitch(PLANAR_A), dst_pitchA, source_bit_depth, target_bit_depth, -1);
1103+
conv_function_a(src->GetReadPtr(PLANAR_A), dstpA, src->GetRowSize(PLANAR_A), heightA, src->GetPitch(PLANAR_A), dst_pitchA, source_bit_depth, target_bit_depth, -1);
11041104
}
11051105
}
11061106
else {

0 commit comments

Comments
 (0)