Skip to content

Commit

Permalink
fix(frame_pipeline): be more specific with pipeline input
Browse files Browse the repository at this point in the history
  • Loading branch information
stakach committed Jul 16, 2023
1 parent 4197957 commit b10a3f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: ffmpeg
version: 0.6.0
version: 0.6.1

dependencies:
# we use stumpy to extract each pixels colour and draw bounding boxes
Expand Down
4 changes: 1 addition & 3 deletions src/ffmpeg/video.cr
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ abstract class FFmpeg::Video
end

def frame_pipeline(
pipeline : Tasker::Pipeline,
pipeline : Tasker::Processor(Tuple(StumpyCore::Canvas, Bool)),
output_width : Int? = nil,
output_height : Int? = nil,
scaling_method : ScalingAlgorithm = ScalingAlgorithm::Bicublin
Expand All @@ -121,8 +121,6 @@ abstract class FFmpeg::Video
if packet.stream_index == stream_index
if (frame = codec.decode(packet)) && pipeline.idle?
pipeline.process scale_and_extract(scaler, frame, rgb_frame, canvas, frame_buffer, requires_cropping, cropped)
else
Log.trace { "skipping frame" }
end
end
end
Expand Down

0 comments on commit b10a3f2

Please sign in to comment.