From 8de0fb74898f04b2c47b797f539d8b9a2cc34528 Mon Sep 17 00:00:00 2001 From: Ian Date: Wed, 7 Apr 2021 09:20:49 -0400 Subject: [PATCH 1/2] fix typo for padded_bits_per_pixel --- src/avio.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/avio.jl b/src/avio.jl index 75925f7c..838bb54e 100644 --- a/src/avio.jl +++ b/src/avio.jl @@ -308,7 +308,7 @@ function VideoReader(avin::AVInput{I}, video_stream = 1; frame_graph = GrayTransform() set_basic_frame_properties!(frame_graph.dstframe, width, height, dst_pix_fmt) - frame_graph.src_depth = frame_graph.dst_depth = bits_per_pixel + frame_graph.src_depth = frame_graph.dst_depth = padded_bits_per_pixel frame_graph.dstframe.color_range = colorspace_details.color_range elseif ! transcode || codec_context.pix_fmt == dst_pix_fmt frame_graph = AVFramePtr() From e42c547749dbfbfbc526d090feae779c9bb962cd Mon Sep 17 00:00:00 2001 From: Galen Lynch Date: Wed, 7 Apr 2021 11:56:58 -0400 Subject: [PATCH 2/2] Fix typo, `padded_bits_per_pixel` -> `bit_depth` (#317) --- src/avio.jl | 2 +- src/frame_graph.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/avio.jl b/src/avio.jl index 838bb54e..fc785c31 100644 --- a/src/avio.jl +++ b/src/avio.jl @@ -308,7 +308,7 @@ function VideoReader(avin::AVInput{I}, video_stream = 1; frame_graph = GrayTransform() set_basic_frame_properties!(frame_graph.dstframe, width, height, dst_pix_fmt) - frame_graph.src_depth = frame_graph.dst_depth = padded_bits_per_pixel + frame_graph.src_depth = frame_graph.dst_depth = bit_depth frame_graph.dstframe.color_range = colorspace_details.color_range elseif ! transcode || codec_context.pix_fmt == dst_pix_fmt frame_graph = AVFramePtr() diff --git a/src/frame_graph.jl b/src/frame_graph.jl index c83be826..30c1d484 100644 --- a/src/frame_graph.jl +++ b/src/frame_graph.jl @@ -63,9 +63,9 @@ end mutable struct GrayTransform srcframe::AVFramePtr - src_depth::Int + src_depth::Int # Does not include padding dstframe::AVFramePtr - dst_depth::Int + dst_depth::Int # Does not include padding end function GrayTransform()