A method of reconstructing d-bit samples from coefficients, in an encoded video bit-stream, encoded based on source samples having a bit-depth D, greater than d, the method comprising: applying to the coefficients a residual process, including inverse-quantization and inverse-transformation processes, to compute (D + 1)-bit residual samples; inputting the residual samples to a prediction process (290h, 290i, 290m) to compute d-bit reconstructed samples (293h, 293i, 293m); and outputting the d-bit reconstructed samples (293h, 293i, 293m), characterized in that the prediction process comprises either: padding d-bit output samples of a prediction operation (275, 275n) to produce D-bit prediction samples (279h, 279m); or padding d-bit intermediate samples to provide D-bit input samples to a prediction operation (275', 275m), to thereby produce D-bit prediction samples (279i, 279m); wherein the prediction process (290h, 290i, 290m) includes an addition operation for combining the (D+1)-bit residual samples with the D-bit prediction samples (279h, 279i, 279m) to generate (D+2)-bit intermediate samples and further includes (i) rounding and/or truncating the (D+2)-bit intermediate samples and (ii) clipping the rounded and/or truncated (D+2)-bit intermediate samples; and wherein the rounding and/or truncating is performed for both inter-prediction and intra-prediction modes. applying to the coefficients a residual process, including inverse-quantization and inverse-transformation processes, to compute (D + 1)-bit residual samples; inputting the residual samples to a prediction process (290h, 290i, 290m) to compute d-bit reconstructed samples (293h, 293i, 293m); and outputting the d-bit reconstructed samples (293h, 293i, 293m), characterized in that the prediction process comprises either: padding d-bit output samples of a prediction operation (275, 275n) to produce D-bit prediction samples (279h, 279m); or padding d-bit intermediate samples to provide D-bit input samples to a prediction operation (275', 275m), to thereby produce D-bit prediction samples (279i, 279m); wherein the prediction process (290h, 290i, 290m) includes an addition operation for combining the (D+1)-bit residual samples with the D-bit prediction samples (279h, 279i, 279m) to generate (D+2)-bit intermediate samples and further includes (i) rounding and/or truncating the (D+2)-bit intermediate samples and (ii) clipping the rounded and/or truncated (D+2)-bit intermediate samples; and wherein the rounding and/or truncating is performed for both inter-prediction and intra-prediction modes. padding d-bit output samples of a prediction operation (275, 275n) to produce D-bit prediction samples (279h, 279m); or padding d-bit intermediate samples to provide D-bit input samples to a prediction operation (275', 275m), to thereby produce D-bit prediction samples (279i, 279m); wherein the prediction process (290h, 290i, 290m) includes an addition operation for combining the (D+1)-bit residual samples with the D-bit prediction samples (279h, 279i, 279m) to generate (D+2)-bit intermediate samples and further includes (i) rounding and/or truncating the (D+2)-bit intermediate samples and (ii) clipping the rounded and/or truncated (D+2)-bit intermediate samples; and wherein the rounding and/or truncating is performed for both inter-prediction and intra-prediction modes.