Skip to content

Commit

Permalink
Fix typo, padded_bits_per_pixel -> bit_depth (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
galenlynch authored Apr 7, 2021
1 parent 8de0fb7 commit e42c547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/avio.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
4 changes: 2 additions & 2 deletions src/frame_graph.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e42c547

Please sign in to comment.