Skip to content

Commit

Permalink
Blank before gavl in order to avoid garbage.
Browse files Browse the repository at this point in the history
  • Loading branch information
smimram committed Nov 4, 2019
1 parent e908606 commit e171296
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/converters/video/gavl_converter.ml
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,8 @@ let create () =
WH.add converters (proportional,src_f,dst_f) conv;
conv
in
(* We need to blank because we get garbage otherwise. *)
if not (Img.width src = Img.width dst && Img.height src = Img.height dst) then Img.blank dst;
(* Now we convert *)
Gavl.Video.convert conv (gavl_frame_of src) (gavl_frame_of dst)
in
Expand Down

0 comments on commit e171296

Please sign in to comment.