Skip to content

Commit 39fb619

Browse files
committed
.
1 parent e4de9b1 commit 39fb619

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

.github/workflows/lint.yml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,18 +48,10 @@ jobs:
4848
echo '::group::Setup environment'
4949
CONDA_PATH=$(which conda)
5050
eval "$(${CONDA_PATH} shell.bash hook)"
51-
# clang-format needs some shared libraries that conflict with the system ones. Thus, we install them from conda
52-
# and prepend the libraries to linker path to prioritize them. `ncurses=5` is only available on the conda-forge
53-
# channel. Since we are not building or testing here, this is fine.
5451
conda create --name ci --quiet --yes -c conda-forge python=3.9 clang-format
5552
conda activate ci
56-
# export LD_LIBRARY_PATH="${CONDA_PREFIX}/lib:${LD_LIBRARY_PATH}"
5753
echo '::endgroup::'
5854
59-
# echo '::group::Install lint tools'
60-
# curl https://oss-clang-format.s3.us-east-2.amazonaws.com/linux64/clang-format-linux64 -o ./clang-format
61-
# chmod +x ./clang-format
62-
# echo '::endgroup::'
6355
6456
echo '::group::Lint C source'
6557
set +e

torchvision/csrc/io/decoder/gpu/decoder.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ int Decoder::handle_picture_display(CUVIDPARSERDISPINFO* disp_info) {
143143
uint8_t* frame_ptr = decoded_frame.data_ptr<uint8_t>();
144144
const uint8_t* const source_arr[] = {
145145
(const uint8_t* const)source_frame,
146-
(const uint8_t* const)(source_frame + source_pitch * ((surface_height + 1) & ~1))};
146+
(const uint8_t* const)(source_frame +
147+
source_pitch * ((surface_height + 1) & ~1))};
147148

148149
auto err = nppiNV12ToRGB_709CSC_8u_P2C3R(
149150
source_arr,

0 commit comments

Comments
 (0)